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.
* 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.
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop