nerdexam
GIAC

GSSP-JAVA · Question #163

Which of the following exceptions will be thrown by the validate method if the result type does not match the Source type, or if the specified source is neither SAXSource nor DOM Source?

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

Question

Which of the following exceptions will be thrown by the validate method if the result type does not match the Source type, or if the specified source is neither SAXSource nor DOM Source?

Options

  • ASAXException
  • BNullPointerException
  • CIllegalArgumentException
  • DIOException

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    12% (5)
  • C
    78% (32)
  • D
    7% (3)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice