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 9 Question 35 Discussion

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

Christoper
23 days ago
Looks like the exam writer needs to printStackTrace their steps and start over.
upvoted 0 times
...
Tasia
25 days ago
A) ex.StackTrace.getError()? Sounds like something straight out of a sci-fi movie.
upvoted 0 times
...
Lili
1 months ago
This question is giving me a stack overflow of my own.
upvoted 0 times
...
Alonso
1 months ago
I'm not sure, but I think D) ex.getError() might also work
upvoted 0 times
...
Laine
1 months ago
I agree with Deonna, using ex.getMessage() will avoid printing the stack trace
upvoted 0 times
...
Elvis
2 months ago
C) ex.getMessage() is the way to go, simple and clean.
upvoted 0 times
Celia
24 days ago
A) ex.StackTrace.getError();
upvoted 0 times
...
Leonardo
26 days ago
C) ex.getMessage() is the way to go, simple and clean.
upvoted 0 times
...
Leonora
1 months ago
B) ex.message() is another option, but I prefer ex.getMessage().
upvoted 0 times
...
Nell
2 months ago
C) ex.getMessage() is the way to go, simple and clean.
upvoted 0 times
...
...
Deonna
2 months ago
I think the answer is C) ex.getMessage()
upvoted 0 times
...

Save Cancel