wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Another question on 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 "Another question on Exceptions" Watch "Another question on Exceptions" New topic
Author

Another question on Exceptions

Higgledy Smith
Ranch Hand

Joined: Mar 07, 2006
Posts: 192
The exceptions and errors listed on page 382 of the Sierra/Bates SCJP 6.0 book. Are these the only exceptions and errors I'll need to know for the 6.0 exam? Will I need to know any of the subtypes of these exceptions or errors?

Thanks.

Higgledy

Ruben Soto
Ranch Hand

Joined: Dec 16, 2008
Posts: 1032
That's just a table with some samples. There are many more exceptions than that which could be in the exam. There are plenty more exceptions also which are mentioned throughout the book (InterruptedException, ParseException, etc.) My best advice is for you to go through the book and make your own compilation of exceptions. Exceptions can be thrown for many different reasons. I don't know if there is a good source regarding the exceptions that the SCJP exam covers, but I think the best thing would be to cover all the objectives, and whatever exceptions you can find related to each objective, are probably fair game for the exam.


All code in my posts, unless a source is explicitly mentioned, is my own.
Higgledy Smith
Ranch Hand

Joined: Mar 07, 2006
Posts: 192
Ruben Soto wrote:That's just a table with some samples. There are many more exceptions than that which could be in the exam. There are plenty more exceptions also which are mentioned throughout the book (InterruptedException, ParseException, etc.) My best advice is for you to go through the book and make your own compilation of exceptions. Exceptions can be thrown for many different reasons. I don't know if there is a good source regarding the exceptions that the SCJP exam covers, but I think the best thing would be to cover all the objectives, and whatever exceptions you can find related to each objective, are probably fair game for the exam.


That will be a large list. Thank you.
Ruben Soto
Ranch Hand

Joined: Dec 16, 2008
Posts: 1032
I don't think you should end up with more than 30 or 40 exception classes, although at first that might sound like a big list. But think about this: What could possibly NotSerializableException do, and why is it thrown? The point is that the name of the exceptions themselves tell the whole story most of the time, so it's not too bad.
Higgledy Smith
Ranch Hand

Joined: Mar 07, 2006
Posts: 192
Ruben Soto wrote:I don't think you should end up with more than 30 or 40 exception classes, although at first that might sound like a big list. But think about this: What could possibly NotSerializableException do, and why is it thrown? The point is that the name of the exceptions themselves tell the whole story most of the time, so it's not too bad.


Where I have trouble is knowing if a particular exception is broader or narrower and if it is even in the same hierarchical family. Maybe I worry to much or think to much about these things?
Ruben Soto
Ranch Hand

Joined: Dec 16, 2008
Posts: 1032
In that case, you need to get all the exceptions in your list, and draw a complete hierarchy. Read the hierarchy a couple times every day (about 5 minutes) and test yourself with individual classes in your list. Practice is the key.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Another question on Exceptions