Multiple Choice
In a catch statement, what does the following code do?
System.out.println(e.getMessage() ) ;
A) It prints the stack trace.
B) It prints the error message for an exception.
C) It prints the code that caused the exception.
D) It overrides the toString method.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q5: What will be the result of the
Q6: The exception classes are in packages in
Q7: In order for an object to be
Q8: When an exception is thrown:<br>A) it must
Q9: A class must implement the Serializable interface
Q11: When an exception is thrown by code
Q12: What will be the result of the
Q13: What will the following code display?<br>String input
Q15: All exceptions are instances of classes that
Q57: The try statement may have an optional