[OCAJP]Java 面向对象的特性
Which three statements describe the object-oriented features of the Java language? A. Objects cannot be reused. B. A subclass can inherit from a superclass. C. Objects can share behaviors with other ...
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
标签
Oracle Certified Associate Java SE Programmer (OCAJP).
共 230 篇文章
Which three statements describe the object-oriented features of the Java language? A. Objects cannot be reused. B. A subclass can inherit from a superclass. C. Objects can share behaviors with other ...
Which two modifications should you make so that the code compiles successfully?
What is the result? A. Element 0 Element 1 B. Null element 0 Null element 1 C. Null Null D. A NullPointerException is thrown at runtime.
Which of the following data types will allow the following code snippet to compile? A. long B. double C. int D. float E. byte
What would be the output, if it is executed as a program? A. name =, pass = B. name = null, pass = null C. name = null, pass = false D. name = null pass = true E. Compile error.
* AssertionError * ArithmeticException * ArrayIndexOutofBoundsException * FileNotFoundException * IllegalArgumentException * IOError * IOException * NumberFormatException * SQLException Which option ...
What is the result? A. A B C Work done B. A B C D Work done C. A Work done D. Compilation fails
What is the result? A. ii = 1 ii = 2 B. Compilation fails C. The program prints nothing D. The program goes into an infinite loop with no output E. The program goes to an infinite loop outputting: ii...
What is the result? A. Red 0 Orange 0 Green 3 B. Red 0 Orange 0 Green 6 C. Red 0 Orange 1 D. Green 4 E. Compilation fails
Which of the following can fill in the blank in this code to make it compile?