[OCAJP] 如何输出 joe:true:100.0?
Which two modifications, when made independently, enable the code to print joe:true:100.0?
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
Java 编程语言的教学与范例,包含语法观念、算法实作与桌面程序开发,并收录大量 Java 认证考试(OCAJP、OCPJP)的题目解析。
共 403 篇文章
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