nerdexam
GIAC

GSSP-JAVA · Question #205

Which of the following exceptions will be thrown if the name parameter is null in the constructor of AuthPermission?

The correct answer is B. NullPointerException. See the full explanation below for the reasoning.

Question

Which of the following exceptions will be thrown if the name parameter is null in the constructor of AuthPermission?

Options

  • AIllegalArgumentException
  • BNullPointerException
  • CClassNotFoundException
  • DIllegalStateException

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    80% (28)
  • C
    6% (2)
  • D
    11% (4)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice