Solved

In a Catch Statement, What Does the Following Code Do

Question 10

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:

verifed

Verified

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

Related Questions