Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Eccouncil 312-96 Exam - Topic 5 Question 51 Discussion

Actual exam question for Eccouncil's 312-96 exam
Question #: 51
Topic #: 5
[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
Alexis
19 hours ago
I remember that printing the stack trace is usually not a good practice, so we should definitely avoid that. I think ex.getMessage() makes sense here.
upvoted 0 times
...
Svetlana
6 days ago
I vaguely recall a practice question where we had to choose between similar methods. I feel like ex.getMessage() is the right one, but I'm not entirely sure.
upvoted 0 times
...
Ronny
11 days ago
I think the method we want is related to getting the error message, but I can't remember if it's getMessage or something else.
upvoted 0 times
...

Save Cancel