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)- A2% (1)
- B12% (5)
- C78% (32)
- D7% (3)
Community Discussion
No community discussion yet for this question.