[OCAJP] 集合元素的移除
What is the result? A. Values are : [EE, ME] B. Values are : [EE, EE, ME] C. Values are : [EE, ME, EE] D. Values are : [SE, EE, ME, EE] E. Values are : [EE, ME, SE, EE]
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
Java 编程语言的教学与范例,包含语法观念、算法实作与桌面程序开发,并收录大量 Java 认证考试(OCAJP、OCPJP)的题目解析。
共 403 篇文章
What is the result? A. Values are : [EE, ME] B. Values are : [EE, EE, ME] C. Values are : [EE, ME, EE] D. Values are : [SE, EE, ME, EE] E. Values are : [EE, ME, SE, EE]
Which inserted at line 11, will provide the following output? [21, 15, 11] A. list.removeIf(e -> e % 2 != 0); B. list.removeIf(e -> e % 2 == 0); C. list.remove(e -> e % 2 == 0); D. None of the above...
What is the result? A. Happy Journey! Duke B. Happy Journey! Java C. An exception is thrown at runtime D. The program fails to execute due to a runtime error
What is the result? A. Found Red Found Default B. Found Teal C. Found Red Found Blue Found Teal D. Found Red Found Blue Found Teal Found Default E. Found Default
What is the result? A. c = null b = false f = 0.0F B. c = 0 b = false f = 0.0f C. c = null b = true f = 0.0 D. c = b = false f = 0.0
What is the result? A. A B C B. A B C D E C. A B D E D. Compilation fails.
Which two are Java Exception classes? A. SercurityException B. DuplicatePathException C. IllegalArgumentException D. TooManyArgumentsException
What is the result? A. ns = 50 s = 125 ns = 125 s = 125 ns = 100 s = 125 B. ns = 50 s = 125 ns = 125 s = 125 ns = 0 s = 125 C. ns = 50 s = 50 ns = 125 s = 125 ns = 100 s = 100 D. ns = 50 s = 50 ns = ...
What is the result? A. Ym Xm2 B. Ym Xm1 C. Compilation fails D. A ClassCastException is thrown at runtime
What could expression1 and expression2 be, respectively, in order to produce output –8, 16? A. ++a, --b B. ++a, b-- C. a++, --b D. a++, b--