• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Unchecked exceptions list required for SCJP 5

 
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the following the complete list of Unchecked exceptions for SCJP 5.0 purposes?

* ArithmeticException
* ClassCastException
* ConcurrentModificationException
* IllegalArgumentException
* IllegalMonitorStateException
* IndexOutOfBoundsException
* NullPointerException
* NumberFormatException

Also, is it better to memorize just the unchecked exceptions and consider everything else checked to make things easier for study? I am only asking for the SCJP 5.0 purposes.

Thanks
[ May 30, 2006: Message edited by: Firas Zureikat ]
 
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think its necessary to memorize all unchecked exceptions.Wat u must know is RuntimeException n all its subclasses are unchecked Exceptions.

Some unchecked like ArithmeticException, ArrayIndexOutOfBoundsException or NullPointerException is very clear. There is nothin in it to memorize. All the unchecked exceptions r due to some runtime error in ur code which compiler can't detect at compilation time. Dats y they are called unchecked.

regards

Naseem
[ May 30, 2006: Message edited by: Naseem Khan ]
 
Firas Zuriekat
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree that NullPointerException and Arithmetic exceptions are very easy to figure out. It's just the specificity that worries me.

I hope the exam does mention for example that an exception of an illegaArgumentException is a super class of NumberFormatException.
[ May 30, 2006: Message edited by: Firas Zureikat ]
 
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic