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 26 Discussion

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

Identify what should NOT be catched while handling exceptions.

A EOFException

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Harley
2 months ago
I disagree, I think SecurityException should not be caught as it may compromise system security.
upvoted 0 times
...
Maurine
2 months ago
Definitely not A. EOFException. That's a common one you'd want to handle in file-reading code.
upvoted 0 times
Tom
23 days ago
D) NullPointerException
upvoted 0 times
...
Ellsworth
24 days ago
C) IllegalAccessException
upvoted 0 times
...
Arlean
2 months ago
B) SecurityException
upvoted 0 times
...
...
Judy
2 months ago
I agree with Jules, EOFException should not be caught because it indicates end of file.
upvoted 0 times
...
Loreta
2 months ago
Hmm, my gut says B. SecurityException. That's a checked exception, so you should let the caller handle it.
upvoted 0 times
Billy
28 days ago
No, NullPointerException should not be caught either. It's a runtime exception.
upvoted 0 times
...
Markus
1 months ago
What about NullPointerException? Should that be caught?
upvoted 0 times
...
Susy
2 months ago
Yes, SecurityException is a checked exception, so it should be handled by the caller.
upvoted 0 times
...
Rodney
2 months ago
I think you're right. SecurityException should not be caught.
upvoted 0 times
...
...
Jules
2 months ago
I think EOFException should not be catched.
upvoted 0 times
...
Kayleigh
2 months ago
C'mon, everyone knows you should never try to catch NullPointerException. That's just asking for trouble!
upvoted 0 times
...
Renea
2 months ago
I think the answer should be D. NullPointerException. That's a runtime exception, not something you should catch explicitly.
upvoted 0 times
Chauncey
2 months ago
Yes, catching NullPointerException can hide bugs in your code.
upvoted 0 times
...
Francoise
2 months ago
I agree, NullPointerException should not be caught explicitly.
upvoted 0 times
...
...

Save Cancel