[OCAJP] 字符串数组的初始值
What is the result? A. Element 0 Element 1 B. Null element 0 Null element 1 C. Null Null D. A NullPointerException is thrown at runtime.
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
Java 编程语言的教学与范例,包含语法观念、算法实作与桌面程序开发,并收录大量 Java 认证考试(OCAJP、OCPJP)的题目解析。
共 403 篇文章
What is the result? A. Element 0 Element 1 B. Null element 0 Null element 1 C. Null Null D. A NullPointerException is thrown at runtime.
Which of the following data types will allow the following code snippet to compile? A. long B. double C. int D. float E. byte
What would be the output, if it is executed as a program? A. name =, pass = B. name = null, pass = null C. name = null, pass = false D. name = null pass = true E. Compile error.
* AssertionError * ArithmeticException * ArrayIndexOutofBoundsException * FileNotFoundException * IllegalArgumentException * IOError * IOException * NumberFormatException * SQLException Which option ...
What is the result? A. A B C Work done B. A B C D Work done C. A Work done D. Compilation fails
What is the result? A. ii = 1 ii = 2 B. Compilation fails C. The program prints nothing D. The program goes into an infinite loop with no output E. The program goes to an infinite loop outputting: ii...
What is the result? A. Red 0 Orange 0 Green 3 B. Red 0 Orange 0 Green 6 C. Red 0 Orange 1 D. Green 4 E. Compilation fails
Which of the following can fill in the blank in this code to make it compile?
Which code fragment when inserted at line '// insert code fragment here', enables the code to successfully change arra elements to uppercase?
You are developing a banking module. You have developed a class named ccMask that has a maskcc method. Given the code fragment. You must ensure that the maskcc method returns a string that hides all ...