Certified Application Security Engineer – Java (CASE-Java) — Question 1

Identify what should NOT be catched while handling exceptions.

Answer options

Correct answer: B

Explanation

The correct answer is B, SecurityException, because it indicates a violation of security policies, which should typically be handled at a higher level. The other exceptions, such as EOFException, IllegalAccessException, and NullPointerException, represent specific issues that can be addressed directly in the context of the code.