GeeCON Prague 2014*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Checked and Runtime Exceptions 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 "Checked and Runtime Exceptions" Watch "Checked and Runtime Exceptions" New topic
Author

Checked and Runtime Exceptions

Sekhar Kadiyala
Ranch Hand

Joined: Feb 17, 2004
Posts: 170
Hi all,
Will there be any questions on the differentiation about Checked and Runtime Exceptions (directly or indirectly) ?
What i mean is when we have to check the exceptions thrown in overriding methods we know that if the original method throws some Runtime exceptions we need not worry. But if it throws Checked exceptions, then the overriding method need to follow certain rules.
I have idea about common exceptions like Arthemetic etc...but does anyone has a list of Checked and Runtime exceptions?


PMP CSQA SCJP SCWCD SCBCD INS 21 INS 23
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
You can certainly check the API Specification for a list of all checked and unchecked exceptions.
For teh exam, while it might be beneficial to know some of the more common exceptions (IOException, FileNotFoundException, ArithmeticException, etc.), you shouldn't stay awake nights memorizing every exception class.
However, you certainly should know the rules regarding exception handling. In the case of your example, if told that a method can throw a checked exception, you'd better know what the method that invoked that method must do in order to handle that.


SCJP Tipline, etc.
 
GeeCON Prague 2014
 
subject: Checked and Runtime Exceptions