• 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

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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic