Solved

In a Catch Statement, What Does the Following Code Do

Question 49

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents