Meaningless Drivel is fun!
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

trick to recognize checked/runtime exceptions?

cody monk

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.
Shaikh Ali
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:
subject: trick to recognize checked/runtime exceptions?
It's not a secret anymore!