[OCAJP]main 方法─程序进入点 3
What is the result? A. int main 1 B. Object main 1 C. String main 1 D. Compilation fails E. An exception is thrown at runtime
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
认证考试的考古题与模拟题解析,包含 Linux 认证(LPIC-1、LPIC-2)与 Java 认证(OCAJP、OCPJP),每一题都附上答案与详细的解说。
共 888 篇文章
What is the result? A. int main 1 B. Object main 1 C. String main 1 D. Compilation fails E. An exception is thrown at runtime
Which statement best describes encapsulation? A. Encapsulation ensures that classes can be designed so that only certain fields and methods of an object are accessible from other objects. B. Encapsul...
What is the result? A. 1 B. 2 C. 4 D. 0
Which line of code initializes a student instance? A. Student student1; B. Student student1 = Student.new(); C. Student student1 = new Student(); D. Student student1 = Student();
Which two modifications, made independently, enable the code to compile? A. Make the method at line n1 public. B. Make the method at line n2 public. C. Make the method at line n3 public. D. Make the ...
What is the result? A. true true B. true false C. false false D. false true
What is the result? A. : Fresco B. null : Fresco C. Fresco : Fresco D. A NullPointerException is thrown at runtime
How many objects have been created when the line // do complex stuff is reached? A. Two B. Three C. Four D. Six
What is the result? A. true false B. true null C. Compilation fails D. A NullPointerException is thrown at runtime
What is the result? A. Jesse 25 Walter 52 B. Compilation fails only at line n1 C. Compilation fails only at line n2 D. Compilation fails at both line n1 and line n2