[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
本站也提供繁體中文版。切換到繁體中文版
分类
编程的教学与经验分享,涵盖 Rust、Java、JavaScript、Go、C/C++ 等编程语言的入门教学、范例程序与实务技巧,以及算法、App 开发与开发工具的用法。
共 635 篇文章
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);