[OCPJP] 集合与串流
What is the result? A. DOC MPEG JPEG MPEGJPEG B. DOC MPEG MPEGJPEG MPEGMPEGJPEG C. MPEGJPEG MPEGJPEG D. The order of the output is unpredictable.
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
认证考试的考古题与模拟题解析,包含 Linux 认证(LPIC-1、LPIC-2)与 Java 认证(OCAJP、OCPJP),每一题都附上答案与详细的解说。
共 888 篇文章
What is the result? A. DOC MPEG JPEG MPEGJPEG B. DOC MPEG MPEGJPEG MPEGMPEGJPEG C. MPEGJPEG MPEGJPEG D. The order of the output is unpredictable.
What is the result? A. Java 100 B. java.lang.string@<hashcode>java.lang.Integer@<hashcode> C. A compilation error occurs. To rectify it, replace line n1 with: Test<Integer> type1 = new Test<>(); D. A...
The Java Projects directory exists and contains a list of files. What is the result? A. The program throws a runtime exception at line n2. B. The program prints files names concurrently. C. The prog...
A. stre.forEach(System.out::print); B. stre.map(a -> a.techName).forEach(System.out::print); C. stre.map(a -> a).forEachOrdered(System.out::print); D. stre.forEachOrdered(System.out::print);
What is the result? A. The program prints: Run Runner Call Caller : null And the program does not terminate. B. The program terminates after printing: Run Runner Call Caller : Run C. A compilation er...
Which two statements are true about localizing an application? A. Support for new regional languages does not require recompilation of the code. B. Textual elements (messages and GUI labels) are hard...
What is the result? A. 246 B. The code produces no output. C. A compilation error occurs at line n1. D. A compilation error occurs at line n2.
What is the result? A. 20 B. 20.5 C. A compilation error occurs at line n1. D. A compilation error occurs at line n2.
What is the result? A. ur :: va B. ueJa C. The program prints nothing. D. A compilation error occurs at line n1.
Which code fragment must be inserted at line n1 to enable the code to print the maximum number in the nums list? A. nums.stream().max(Comparator.comparing(a -> a)).get() B. nums.stream().max(Integer ...