MagicLen

分类

Java - 第 24 页

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

共 403 篇文章

[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