[OCPJP]UnaryOperator 的用法
What is the result? A. 20.0 30.0 B. 10 20 C. A compilation error occurs. D. A NumberFormatException is thrown at run time.
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
标签
1z0-809 是取得 Oracle Certified Professional Java SE 8 Programmer 认证的考试代号。
共 127 篇文章
What is the result? A. 20.0 30.0 B. 10 20 C. A compilation error occurs. D. A NumberFormatException is thrown at run time.
Which two modifications enable the code to print Open Close? A. Replace line n1 with: class Folder implements AutoCloseable { B. Replace line n1 with: class Folder extends Closeable { C. Replac...
For which three objects must a vendor provide implementations in its JDBC driver?
What is the result? A. Scan.Printer closed. Scanner closed. Unable to scan. B. Scan.Scanner closed. Unable to scan. C. Scan. Unable to scan. D. Scan. Unable to scan. Printer closed.
What is the result? A. User is registered. B. An AgeOutOfLimitException is thrown. C. A UserException is thrown. D. A compilation error occurs in the main method.
Which modification enables the code fragment to compile? A. Replace line n1 with: IntFunction<UnaryOperator> inFu = x -> y -> x * y; B. Replace line n1 with: IntFunction<IntUnaryOperator> inFu = x ->...
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);