nerdexam
GIAC

GSSP-JAVA · Question #209

Which of the following exceptions will be thrown if the checkSecurityAccess() method uses an empty target as its parameter value?

The correct answer is D. IllegalArgumentException. See the full explanation below for the reasoning.

Question

Which of the following exceptions will be thrown if the checkSecurityAccess() method uses an empty target as its parameter value?

Options

  • ANullPointerException
  • BSecurityException
  • CNoArgumentException
  • DIllegalArgumentException

How the community answered

(54 responses)
  • A
    13% (7)
  • B
    4% (2)
  • C
    9% (5)
  • D
    74% (40)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice