File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes trick to recognize checked/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 "trick to recognize checked/runtime exceptions?" Watch "trick to recognize checked/runtime exceptions?" New topic
Author

trick to recognize checked/runtime exceptions?

cody monk
Greenhorn

Joined: May 15, 2011
Posts: 6
Hi all, I wonder how many checked/runtime exceptions one is expected to know in the exam. There seems to be an unlimited number of them out there; so to be more exact with my question, is there a trick to remember/recognize which exception is checked and which is runtime? Thank you.
Faraz Kadri
Ranch Hand

Joined: Jan 26, 2011
Posts: 51
From the Exam Objectives:

* Develop code that makes use of assertions, and distinguish appropriate from inappropriate uses of assertions.

* Develop code that makes use of exceptions and exception handling clauses (try, catch, finally), and declares methods and overriding methods that throw exceptions.

* Recognize the effect of an exception arising at a specified point in a code fragment. Note that the exception may be a runtime exception, a checked exception, or an error.

* Recognize situations that will result in any of the following being thrown: ArrayIndexOutOfBoundsException,ClassCastException, IllegalArgumentException, IllegalStateException, NullPointerException, NumberFormatException, AssertionError, ExceptionInInitializerError, StackOverflowError or NoClassDefFoundError. Understand which of these are thrown by the virtual machine and recognize situations in which others should be thrown programatically.


There are not too many exceptions to remember, but you should know about methods that throw checked exceptions from classes such as IO, Thread, XXXFormat etc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: trick to recognize checked/runtime exceptions?
 
Similar Threads
Compiler :
Checked Exceptions and Unchecked
compile time vs runtime error???
How to recognise a checked or unchecked exception
Runtime Exception