GIAC
GSSP-JAVA · Question #48
Which of the following exceptions will be thrown if the caller does not have permission to invoke the doAsPrivileged method?
The correct answer is C. SecurityException. See the full explanation below for the reasoning.
Question
Which of the following exceptions will be thrown if the caller does not have permission to invoke the doAsPrivileged method?
Options
- ALoginException
- BNullPointerException
- CSecurityException
- DPrivilegedActionException
How the community answered
(33 responses)- A18% (6)
- B6% (2)
- C73% (24)
- D3% (1)
Community Discussion
No community discussion yet for this question.