• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Another question on Exceptions

 
Ranch Hand
Posts: 193
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Ranch Hand
Posts: 1032
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Higgledy Smith
Ranch Hand
Posts: 193
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 1032
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 193
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 1032
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic