[OCAJP] 如何输出 joe:true:100.0?
Which two modifications, when made independently, enable the code to print joe:true:100.0?
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
认证考试的考古题与模拟题解析,包含 Linux 认证(LPIC-1、LPIC-2)与 Java 认证(OCAJP、OCPJP),每一题都附上答案与详细的解说。
共 888 篇文章
Which two modifications, when made independently, enable the code to print joe:true:100.0?
Which two classes use the shape class correctly?
Given: A. a, e i, o B. a, e o, o C. e, e I, o D. e, e o, o
What is the result? A. Prints 1 2 3 4 5 once B. Prints 1 3 5 once C. Prints 1 2 3 4 5 five times D. Prints 1 2 3 4 5 six times E. Compilation fails
Given the code fragment: A. 68, 65, 69 B. 68, 65, 65 C. 65, 68, 65 D. 65, 68, 69 E. Compilation fails
What is the result? A. Marrown String out of limits JesOran B. Marrown String out of limits Array out of limits C. Marrown String out of limits D. Marrown NanRed
Which option represents the state of the num array after successful completion of the outer loop? A. num[0][0]=10 num[0][1]=10 num[0][2]=10 B. num[0][0]=10 num[1][0]=10 num[2][0]=10 C. num[0][0]=10 n...
Which of the following is equivalent to the above code fragment? A. System.out.printLn(x>10?">":"<":"="); B. System.out.println(x>10? ">"?"<":"="); C. System.out.println(x>10?">":x<10?"<":"="); D. Sy...
What is result? A. Successful B. Unsuccessful C. Compilation fails D. An exception is thrown at runtime
What should keyword1 and keyword2 be respectively, in oreder to produce output 2345? A. continue, break B. break, break C. break, continue D. continue, continue