Solved

In a Catch Statement, What Does the Following Code Do

Question 13

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions