MagicLen

分类

Java - 第 12 页

Java 编程语言的教学与范例,包含语法观念、算法实作与桌面程序开发,并收录大量 Java 认证考试(OCAJP、OCPJP)的题目解析。

共 403 篇文章

[OCPJP] 泛型 2

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

[OCPJP] 输出最大值

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