• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

trick to recognize checked/runtime exceptions?

 
cody monk
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic