[OCPJP] 串流与 Lambda 的精简应用
What is the output? A. {EUROPE = [Italy, Germany], ASIA = [Japan]} B. {ASIA = [Japan], EUROPE = [Italy, Germany]} C. {EUROPE = [Germany, Italy], ASIA = [Japan]} D. {EUROPE = [Germany], EUROPE = [Ital...
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
Java 编程语言的教学与范例,包含语法观念、算法实作与桌面程序开发,并收录大量 Java 认证考试(OCAJP、OCPJP)的题目解析。
共 403 篇文章
What is the output? A. {EUROPE = [Italy, Germany], ASIA = [Japan]} B. {ASIA = [Japan], EUROPE = [Italy, Germany]} C. {EUROPE = [Germany, Italy], ASIA = [Japan]} D. {EUROPE = [Germany], EUROPE = [Ital...
The required database driver is configured in the classpath. The appropriate database is accessible with the dbURL, userName, and passWord exists. The SQL query is valid. What is the result? A. An e...
Which option fails? A. Foo<String, Integer> mark = new Foo<String, Integer> ("Steve", 100); B. Foo<String, String> pair = Foo.<String>twice ("Hello World!"); C. Foo<?, ?> percentage = new Foo<?, ?>(9...
Which statement is true? A. The green.txt file content is replaced by the yellow.txt file content and the yellow.txt file is deleted. B. The yellow.txt file content is replaced by the green.txt file ...
What is the result? A. The program prints the content of data.txt file. B. The program prints: Exception <<The content of the data.txt file>> Exception C. A compilation error occurs at line n1. D. Th...
Which statement is true? A. The program prints true. B. The program prints false. C. A compilation error occurs. To ensure successful compilation, replace line n1 with: boolean equals (Book obj) { D....
What is the result? A. 2 B. 3 C. A compilation error occurs at line n1. D. A compilation error occurs at line n2.
What is the result? A. Velocity with new speed 1 kmph B. A compilation error occurs at line n1. C. A compilation error occurs at line n2. D. A compilation error occurs at line n3.
Which two options, when inserted independently inside class Base, ensure that the class is being properly encapsulated and allow the program to execute and print the square of the number?
What is the result? A. One B. Two C. Three D. Compilation fails.