[OCAJP][OCPJP] 字符值与数值
What is the result? A. Good Day! Good Luck! B. Good Day! Good Day! C. Good Luck! Good Day! D. Good Luck! Good Luck! E. Compilation fails
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
Java 编程语言的教学与范例,包含语法观念、算法实作与桌面程序开发,并收录大量 Java 认证考试(OCAJP、OCPJP)的题目解析。
共 403 篇文章
What is the result? A. Good Day! Good Luck! B. Good Day! Good Day! C. Good Luck! Good Day! D. Good Luck! Good Luck! E. Compilation fails
Which constructor initializes the variable x3? A. Only the default constructor of class X B. Only the no-argument constructor of class Y C. Only the no-argument constructor of class Z D. Only the def...
What is the result? A. 100 B. 101 C. 102 D. 103 E. Compilation fails
Which of the following can fill in the blank in this code to make it compile? A. abstract B. final C. private D. default E. int
Which set of changes enable the code to print 1, true? A. Replacing <code1> with index > 0 and replacing <code2> with index--; B. Replacing <code1> with index > 0 and replacing <code2> with --index; ...
Which two code fragments, when inserted independently at line // Insert code here, enable the program to execute and print the welcome message on the screen? A. static public void main (String [] arg...
What is the result? A. 100 200 : 100 200 : B. 100 0 : 100 0 : C. 100 200 : 100 0 : D. 100 0 : 100 200 :
What is the result? A. A B C D B. A C D C. A B C D. A B D E. A B D C F. A B C C
Which three code fragments can be independently inserted at line nl to enable the code to print one?
What is the result? A. 4W 100 Auto 4W 150 Manual B. null 0 Auto 4W 150 Manual C. Compilation fails only at line n1 D. Compilation fails only at line n2 E. Compilation fails at both line n1 and line n...