• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need clarification

 
Rajesh k Jha
Ranch Hand
Posts: 72
  • 0
  • 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: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • 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: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use a meaningful subject line instead of something like "Need Clarification".
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic