Question: In a catch statement, what does the following code do ? System.out.println ( e . getMessage ( ) ) ; In a catch statement, what
In a catch statement, what does the following code do
System.out.printlnegetMessage;
In a catch statement, what does the following code do
System.out.printlnegetMessage;
It overrides the toString method.
It prints the code that caused the exception.
It prints the stack trace.
It prints the error message for an exception.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
