wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Exception question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Exception question" Watch "Exception question" New topic
Author

Exception question

Meg Adal
Ranch Hand

Joined: Mar 12, 2002
Posts: 70
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
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
I couldn't agree more
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
Not a very well written question; where did you find it? Object is also a superclass of all exceptions.


Ron Newman - SCJP 1.2 (100%, 7 August 2002)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception question