BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Eccouncil Exam 312-96 Topic 9 Question 31 Discussion

Actual exam question for Eccouncil's 312-96 exam
Question #: 31
Topic #: 9
[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:

Curtis
1 days ago
B) ex.message(); sounds like it would do the trick. Though I wonder if it's a typo and should be ex.getMessage().
upvoted 0 times
...
Janessa
9 days ago
I agree with Lorrine, using ex.getMessage() will avoid printing the stack trace
upvoted 0 times
...
Lorrine
10 days ago
I think the answer is C) ex.getMessage()
upvoted 0 times
...
Kirk
12 days ago
C) ex.getMessage(); seems like the obvious choice to me. Who needs a stack trace when you can just get the error message?
upvoted 0 times
Ivan
2 days ago
I agree, ex.getMessage() is the way to go.
upvoted 0 times
...
...

Save Cancel