Which two modules include APIs in the Java SE Specification? (Choose two.)
A. java.logging
B. java.desktop
C. javafx
D. jdk.httpserver
E. jdk.jartool
Given: What is the result?
A. The compilation fails.
B. 1.99,2.99,0
C. 1.99,2.99,0.0
D. 1.99,2.99
Given:
What is the result?
A. b1
B. 2
C. b2
D. 1
E. b3
F. 3
G. The compilation fails due to an error in line 1.
Which is the correct order of possible statements in the structure of a Java class file?
A. class, package, import
B. package, import, class
C. import, package, class
D. package, class, import
E. import, class, package
Given:
Why does D cause a compilation error?
A. D inherits a() only from C.
B. D inherits a() from B and C but the return types are incompatible.
C. D extends more than one interface.
D. D does not define any method.
Given:
What is the result?
A. 9
B. An exception is thrown at runtime.
C. 3
D. 6
Given:
executed with this command:
java Main one two three
What is the output of this class?
A. The compilation fails.
B. 1) one 2) two 3) three
C. A java.lang.ArrayIndexOutOfBoundsException is thrown.
D. 1) one
E. nothing
Given:
Which two methods facilitate valid ways to read instance fields? (Choose two.)
A. getTCount
B. getACount
C. getTotalCount
D. getCCount
E. getGCount
Given: What is the result?
A. NullPointerException is thrown at line 4.
B. NullPointerException is thrown at line 10.
C. A compilation error occurs.
D. Hello