MagicLen

分類

題庫解析 - 第 64 頁

認證考試的考古題與模擬題解析,包含 Linux 認證(LPIC-1、LPIC-2)與 Java 認證(OCAJP、OCPJP),每一題都附上答案與詳細的解說。

共 888 篇文章

[OCPJP] 單例模式

You want to create a singleton class by using the Singleton design pattern. Which two statements enforce the singleton nature of the design? A. Make the class static. B. Make the constructor private...

[OCPJP] 排序串流

Which code fragment, when inserted at line n1, sorts the employees list in descending order of fName and then ascending order of lName? A. .sorted(Comparator.comparing(Emp::getfName).reversed().thenC...