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)- A3% (1)
- B80% (28)
- C6% (2)
- D11% (4)
Community Discussion
No community discussion yet for this question.