GIAC
GSSP-JAVA · Question #264
Which of the following exceptions is thrown if a class uses the clone() method but does not implement the Cloneable interface?
The correct answer is C. CloneNotSupportedException. See the full explanation below for the reasoning.
Question
Which of the following exceptions is thrown if a class uses the clone() method but does not implement the Cloneable interface?
Options
- ACloneDoesNotExistException
- BClassNotFoundException
- CCloneNotSupportedException
- DNullPointerException
How the community answered
(19 responses)- A11% (2)
- B5% (1)
- C79% (15)
- D5% (1)
Community Discussion
No community discussion yet for this question.