File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 2591

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.
I agree. Here's the link:
subject: Exceptions
It's not a secret anymore!