following question is from mock exam Name the superclass of all exceptions in the Java language. A. Throwable B. Exception C. Error D. Object Corrrect answer is A I thought it should be B as Throwable is parent of class Exception and Error and All exceptions' parent is Exception class Please correct me if I am wrong Thanks in advance Megan
Jose Botella
Ranch Hand
Joined: Jul 03, 2001
Posts: 2120
posted
0
I guess : because Exception, being also an Exception, isn't superclass of itself
SCJP2. Please Indent your code using UBB Code
Anthony Villanueva
Ranch Hand
Joined: Mar 22, 2002
Posts: 1055
posted
0
I couldn't agree more
Ron Newman
Ranch Hand
Joined: Jun 06, 2002
Posts: 1056
posted
0
Not a very well written question; where did you find it? Object is also a superclass of all exceptions.