MagicLen

分類

題庫解析 - 第 77 頁

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

共 888 篇文章

[OCAJP] 多型的優點

Which two are benefits of polymorphism? A. Faster code at runtime B. More efficient code at runtime C. More dynamic code at runtime D. More flexible and reusable code E. Code that is protected from e...

[OCAJP] 線性搜尋

Which code fragment, when inserted at line 7, enables the code print true? A. while(key == myarray[index++]){ isFound = true; } B. while(index <= 4){ if(key == myarray[index]){ index+...

[OCAJP]for 迴圈 3

What is the result? A. 10 8 6 4 2 0 B. 10 8 6 4 2 C. AnArithmeticException is thrown at runtime D. The program goes into an infinite loop outputting: 10 8 6 4 2 0. . . E. Compilation fails