This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Need clarification Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Need clarification" Watch "Need clarification" New topic
Author

Need clarification

Rajesh k Jha
Ranch Hand

Joined: May 10, 2009
Posts: 72
Can somebody send me link of Exceptions, i mean which one is the superclass of which(RuntimeException is the superclass of ArithmeticException), I just get confused when i find such question regarding catching the exception is necessary or not(As we dont catch the exception if it is RuntimeException but catch it if it is subclass of Exception)



As i got confused in this programme, whether NumberFormatException is the subclass/subclasses of the RuntimeException or Exception.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

You can look at the RuntimeException class here. It contains a list of sub-classes of RuntimeException. But the list is very long. The K&B book covers a list of exceptions that might be on the exam...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14117
    
  16

Please use a meaningful subject line instead of something like "Need Clarification".


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
 
subject: Need clarification