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
Joined: Jul 03, 2001
I guess : because Exception, being also an Exception, isn't superclass of itself
SCJP2. Please Indent your code using UBB Code
Joined: Mar 22, 2002
I couldn't agree more
Joined: Jun 06, 2002
Not a very well written question; where did you find it? Object is also a superclass of all exceptions.