Cyber Monday 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
3 months ago
Definitely not A. EOFException. That's a common one you'd want to handle in file-reading code.
upvoted 0 times
Tom
1 months ago
D) NullPointerException
upvoted 0 times
...
Ellsworth
1 months ago
C) IllegalAccessException
upvoted 0 times
...
Arlean
2 months ago
B) SecurityException
upvoted 0 times
...
...
Judy
3 months ago
I agree with Jules, EOFException should not be caught because it indicates end of file.
upvoted 0 times
...
Loreta
3 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
2 months ago
No, NullPointerException should not be caught either. It's a runtime exception.
upvoted 0 times
...
Markus
2 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
3 months ago
I think EOFException should not be catched.
upvoted 0 times
...
Kayleigh
3 months ago
C'mon, everyone knows you should never try to catch NullPointerException. That's just asking for trouble!
upvoted 0 times
...
Renea
3 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
3 months ago
I agree, NullPointerException should not be caught explicitly.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77