U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Eccouncil 312-96 Exam - Topic 7 Question 55 Discussion

Which of the following method will you use in place of ex.printStackTrace() method to avoid printing stack trace on error?
C) ex.getMessage();
A) ex.StackTrace.getError();
B) ex.message();
D) ex.getError();

Eccouncil 312-96 Exam - Topic 7 Question 55 Discussion

Actual exam question for Eccouncil's 312-96 exam
Question #: 55
Topic #: 7
[All 312-96 Questions]

Which of the following method will you use in place of ex.printStackTrace() method to avoid printing stack trace on error?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Genevieve
9 hours ago
I feel like we practiced a similar question in class, and I think the right answer is C) ex.getMessage().
upvoted 0 times
...
Merrilee
2 months ago
I think I remember that using ex.getMessage() is a way to get the error message without the stack trace, but I'm not completely sure.
upvoted 0 times
...

Save Cancel