Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which of these exceptions is thrown by compareTo() method defined in a double wrapper?

a) IOException
b) SystemException
c) CastException
d) ClassCastException

Answer: d
Explanation: compareTo() methods compare the specified object to be double, if it is not then ClassCastException is thrown.

Join The Discussion