[OCAJP] 日期与时间
What is the output? A. 2015-03-27 B. 2015-04-27 C. 2015-02-27 D. Compilation fails due to error at line 6. E. Compilation fails due to error at line 8.
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
科学与科技类文章的总分类,包含编程与算法、操作系统、网络与服务器、网站与软硬件的介绍,以及数学逻辑、天文物理和生物化学的科普文章。
共 1507 篇文章
What is the output? A. 2015-03-27 B. 2015-04-27 C. 2015-02-27 D. Compilation fails due to error at line 6. E. Compilation fails due to error at line 8.
What is the result? A. 20 B. 25 C. 29 D. Compilation fails E. An ArrayIndexOutOfBoundsException is thrown at runtime
What is the result? A. Base 30 B. Overridden 20 C. Overridden 20 Base 30 D. Base 30 Overridden 20
Which three statements are true about the structure of a Java class? A. A class can have only one private constructor. B. A method can have the same name as a field. C. A class can have overloaded st...
Which two modifications, made independently, enable the code to compile and run? A. Adding a break statement after each print statement B. Adding a default section within the switch code-block C. Cha...
What is the result? A. 13480.0 B. 13480.02 C. Compilation fails D. An exception is thrown at runtime
What is the result? A. 10 : 22 : 20 B. 10 : 22 : 22 C. 10 : 22 : 6 D. 10 : 30 : 6
What is the result? A. Initialized Started B. Initialized Started Initialized C. Compilation fails D. An exception is thrown at runtime
Which modification enables the code to print 54321? A. Replace line 6 with System.out.print(--x); B. At line 7, insert x--; C. Replace line 6 with --x; and, at line 7, insert System.out.print(x); D. ...
Which options enable the code to compile? A. Replace the code fragment at line n1 with: class Book implements Readable { B. At line n2 insert: public abstract void setBookMark(); C. Replace the code ...