MagicLen

標籤

OCAJP - 第 11 頁

Oracle Certified Associate Java SE Programmer (OCAJP).

共 230 篇文章

[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