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 Exam 312-96 Topic 6 Question 37 Discussion

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

Jettie
4 days ago
I'm not sure, but I think D) ex.getError() might also work.
upvoted 0 times
...
Stefania
6 days ago
I agree with Carmen, using ex.getMessage() will avoid printing the stack trace.
upvoted 0 times
...
Leslie
9 days ago
I personally prefer option B) ex.message(). It's more concise and easier to read.
upvoted 0 times
...
Lottie
13 days ago
C) ex.getMessage(); is the correct answer. It's the most direct way to get the error message without the verbose stack trace.
upvoted 0 times
...
Carmen
16 days ago
I think the answer is C) ex.getMessage().
upvoted 0 times
...

Save Cancel