Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need clarification

 
Rajesh k Jha
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9528
32
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15438
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use a meaningful subject line instead of something like "Need Clarification".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic