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

Verified
Correct Answer:
Verified
Related Questions
Q8: An exception's default error message can be
Q9: A(n) _ contains one or more statements
Q10: If a method does not handle a
Q11: Assume that the classes BlankISBN, NegativePrice, and
Q12: If your code does not handle an
Q14: To write data to a binary file,
Q15: In Java there are two categories of
Q16: In the following code, assume that inputFile
Q17: All of the exceptions that you will
Q18: What will be the result of the