nerdexam
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)
  • A
    18% (6)
  • B
    6% (2)
  • C
    73% (24)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice