MagicLen

分类

题库解析 - 第 66 页

认证考试的考古题与模拟题解析,包含 Linux 认证(LPIC-1、LPIC-2)与 Java 认证(OCAJP、OCPJP),每一题都附上答案与详细的解说。

共 888 篇文章

[OCPJP] 泛型

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...

[OCPJP] 搬移文件

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 ...

[OCPJP] 逻辑相等

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....

[OCAJP] 封装 2

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?