Given:
Which two can be results?()
A.java.lang.RuntimeException: Problem
B.run.java.lang.RuntimeException: Problem
C.End of method.java.lang.RuntimeException: Problem
D.End of method.run.java.lang.RuntimeException: Problem
E.run.java.lang.RuntimeException: ProblemEnd of method
您可能感兴趣的试卷
你可能感兴趣的试题
Given:
What is the result?()
A.Compilation fails.
B.An exception is thrown at runtime.
C.[608, 610, 612, 629] [608, 610]
D.[608, 610, 612, 629] [608, 610, 629]
E.[606, 608, 610, 612, 629] [608, 610]
Given:
What is the result?()
A.2
B.24
C.234
D.246
E.2346
Click the Exhibit button
Which two statements are true if a NullPointerException is thrown on line 3 of class C?()
A.The application will crash.
B.The code on line 29 will be executed.
C.The code on line 5 of class A will execute.
D.The code on line 5 of class B will execute.
E.The exception will be propagated back to line 27.
Given:
What is the result?()
A.s 14
B.s 16
C.s 10
D.Compilation fails.
Given:
Which line of code marks the earliest point that an object referenced by intObj becomes a candidate for garbage collection?()
A.Line 16
B.Line 17
C.Line 18
D.Line 19
Given:
What are four valid examples of polymorphic method calls?()
A.x.a2();
B.z.a2();
C.z.c1();
D.z.a1();
E.y.c1();
F.x.a1();
Click the Exhibit button.
What two must the programmer do to correct the compilation errors?()
A.insert a call to this() in the Car constructor
B.insert a call to this() in the MeGo constructor
C.insert a call to super() in the MeGo constructor
D.insert a call to super(vin) in the MeGo constructor
E.change the wheelCount variable in Car to protected
Click the Exhibit button.
Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JVM?()
A.Jar A
B.Jar B
C.Jar C
D.Jar D
E.Jar E
Given:
When the doSomething method is called, after which line does the Object created in line 5 become available for garbage collection?()
A.Line 5
B.Line 6
C.Line 7
D.Line 8
E.Line 9
Given:
What is the result?()
A.Compilation fails.
B.Cannot add Toppings
C.The code runs with no output.
D.A NullPointerException is thrown in Line 4.
最新试题
Click the Exhibit button.Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JVM?()
Given:What is the result?()
Given:What is the result?()
Given:What is the result?()
Given:What is the result?()
Click the Exhibit button.What is the result?()
Given:Which code fragment, inserted at the end of line 12, produces the output p is 420?()
Given:What are four valid examples of polymorphic method calls?()
Given a class whose instances, when found in a collection of objects, are sorted by using the compare To method, which two statements are true?()
A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command:java games.cards.Poker What allows the user to do this?()