This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Exceptions" Watch "Exceptions" New topic


Rob Petterson
Ranch Hand

Joined: Jan 23, 2002
Posts: 149
Can anyone tell me if we need to memorize the various Exception and Runtime classes off by heart in order to able to answer questions where overriding methods using various exceptions come into play?
I.E. what I am saying is in the real exam, will it tell you that for example, IOException is a checked exception and NumberFormatException is a runtime exception if you were determining if say a piece of code would compile if using overriding methods with these vaious exceptions tagged onto the end of each of the methods?

Rob Petterson
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
You don't need to memorize the various exceptions for the exam. However, if you've studied exceptions at all, a few major ones should jump out at you as being either checked or unchecked exceptions.
For example, IOException is checked (as you pointed out) and things like ArrayIndexOutOfBoundsException is unchecked. Knowing a few of the more common ones by heart wouldn't hurt and, frankly, I think you'll end up knowing them simply from studying exceptions.
I hope that helps,

SCJP Tipline, etc.
Rob Ross

Joined: Jan 07, 2002
Posts: 2205
Although you don't have to memorize all of them, you really should be familiar with all the exception classes in the java.lang package.

SCJP 1.4
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

In general, you should know which are runtime exceptions. They usually test you for this while method overriding.
- Manish
Rob Petterson
Ranch Hand

Joined: Jan 23, 2002
Posts: 149
Thanks to you all.For the time being I'll think I'll learn a few of the runtime exceptions just to play it safe - just the more obvious ones though.
subject: Exceptions
Similar Threads
Exceptions doubt
JavaCaps mock 1 Q:9
Exception Heirarchy
Can't callbacks throw checked exceptions?
Overriding and exception