Given:
Which three are valid?()
A.p0 = p1;
B.p1 = p2;
C.p2 = p4;
D.p2 = (ClassC)p1;
E.p1 = (ClassB)p3;
F.p2 = (ClassC)p4;
您可能感兴趣的试卷
你可能感兴趣的试题
Given:
What is the result?()
A.Canada
B.null Canada
C.Canada null
D.Canada Canada
E.Compilation fails due to an error on line 26.
F.Compilation fails due to an error on line 29.
Given:
What is the result? ()
A.three
B.other
C.An exception is thrown at runtime.
D.Compilation fails because of an error on line 12.
E.Compilation fails because of an error on line 13.
F.Compilation fails because of an error on line 15.
Given:
What is the result?()
A.test end
B.Compilation fails.
C.test runtime end
D.test exception end
E.Throwable is thrown by main at runtime.
A.
B.
C.
D.
E.
F.
Given:
What is the result?()
A.The value "4" is printed at the command line.
B.Compilation fails because of an error in line 5.
C.Compilation fails because of an error in line 9.
D.A NullPointerException occurs at runtime.
E.A NumberFormatException occurs at runtime.
F.An IllegalStateException occurs at runtime.
Given:
What is the result?()
A.null
B.finally
C.null finally
D.Compilation fails.
E.finally exception
Given:
Which command-line invocations will compile?()
A.javac Mule.java
B.javac -source 1.3 Mule.java
C.javac -source 1.4 Mule.java
D.javac -source 1.5 Mule.java
Given:
What is the result?()
A.null
B.zero
C.some
D.Compilation fails.
E.An exception is thrown at runtime.
Given:
What is the result?()
A.B
B.B, followed by an Exception.
C.Compilation fails due to an error on line 9.
D.Compilation fails due to an error on line 14.
E.An Exception is thrown with no other output.
Given:
What is the result?()
A.6
B.7
C.10
D.11
E.Compilation fails.
F.An exception is thrown at runtime.
最新试题
Which two code fragments are most likely to cause a StackOverflowError?()
DRAG DROP Click the Task button.
Given:What can directly access and change the value of the variable name?()
A team of programmers is involved in reviewing a proposed design for a new utility class. After some discussion, they realize that the current design allows other classes to access methods in the utility class that should be accessible only to methods within the utility class itself.What design issue has the team discovered?()
Given:Which two are true? ()
DRAG DROP Click the Task button.
DRAG DROP Click the Task button.
Given:What is the result?()
Given:Which three are valid?()
DRAG DROP Click the Task button.