[OCAJP] 抛出 IOException
Which two modifications should you make so that the code compiles successfully?
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
MagicLen 的主要文章,分成「科学与科技」和「社会与生活」两大类。前者以编程、操作系统、网络与软硬件的教学和心得为主,后者包含语言学习、创作、旅游、开箱与各种生活主题,另外还有本站公告。
共 1660 篇文章
Which two modifications should you make so that the code compiles successfully?
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?