Given:
Which statement is true?()
A. Compilation succeeds.
B. Class A does not compile.
C. The method declared on line 9 cannot be modified to throw TestException.
D. TestA compiles if line 10 is enclosed in a try/catch block that catches TestException.
您可能感兴趣的试卷
你可能感兴趣的试题
Given:
Which code, inserted at line 4, guarantees that this program will output [1, 2]()?
A.Set set = new TreeSet();
B.Set set = new HashSet();
C.Set set = new SortedSet();
D.List set = new SortedList();
E.Set set = new LinkedHashSet();
A.The class implements java.lang.Comparable.
B.The class implements java.util.Comparator.
C.The interface used to implement sorting allows this class to define only one sort sequence.
D.The interface used to implement sorting allows this class to define many different sort sequences.
Given:
What is the result?()
A.0
B.1
C.2
D.3
E.4
F.Compilation fails.
G.An exception is thrown at runtime.
Given:
What is the result?()
A.7
B.49
C.343
D.Compilation fails.
E.An exception is thrown at runtime.
最新试题
DRAG DROP Click the Task button.
DRAG DROP Click the Task button.
Given:What is the result?()
Given:Which three are true?()
DRAG DROP Click the Task button.
Which two code fragments are most likely to cause a StackOverflowError?()
Click the Exhibit button. Which three code fragments, added individually at line 29, produce the output 100?()
DRAG DROP Click the Task button.
Which three statements are true?()
DRAG DROP Click the Task button.