[OCAJP][OCPJP] 多态与覆写
What is the result? A. Java Java Java B. Java Jeve va C. Java Jeve ve D. Compilation fails
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
认证考试的考古题与模拟题解析,包含 Linux 认证(LPIC-1、LPIC-2)与 Java 认证(OCAJP、OCPJP),每一题都附上答案与详细的解说。
共 888 篇文章
What is the result? A. Java Java Java B. Java Jeve va C. Java Jeve ve D. Compilation fails
Which two items can legally be contained within a java class declaration? A. An import statement B. A field declaration C. A package declaration D. A method declaration
What is the result? A. 10 : 10 B. 5 : 5 C. 5 : 10 D. Compilation fails
What is the result? A. The sum is 2 B. The sum is 14 C. The sum is 15 D. The loop executes infinite times E. Compilation fails
Which code fragment can be inserted at line "//insert code here" to enable the code to compile?
What is the result? A. 3 4 5 6 B. 3 4 3 6 C. 5 4 5 6 D. 3 6 4 6
Which code fragment, when inserted at line 3, enables the code to print 10:20? A. int[] array = new int[2]; B. int[] array; array = int[2]; C. int array = new int[2]; D. int array [2] ;
What is the result? A. hEllO jAvA! B. Hello java! C. Out of limits hEllO jAvA! D. Out of limits