Question
Which of these exceptions is thrown by compareTo() method defined in double
wrapper?
Answer: Option D
Was this answer helpful ?
compareTo() methods compare the specified object to be double, if it is not then
ClassCastException is thrown.
Was this answer helpful ?
Submit Solution