• 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

Remember Exception

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Folks,

There is any Tip�s to easily identify the exceptions are related to either RuntimeException or Exception.

Because these are the large list. I don�t know how to remeber this on the exam.

Thanks, Raghu.K
 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most of the exceptions in java.lang are run-time exceptions. The most noteworthy non-run-time is InterruptedException, which is very important to know for some of the Thread/Object synchronization methods (sleep, join & wait).

People studying for the SCJP should also learn to look directly at the source code. As a picture is worth a thousand words, a java.lang source file is worth is thousand explanations.

LOOK AT THE CODE!!!
 
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by RAGU KANNAN:
Hello Folks,

There is any Tip�s to easily identify the exceptions are related to either RuntimeException or Exception.

Because these are the large list. I don�t know how to remeber this on the exam.

Thanks, Raghu.K



There is no need to remember different Runtime exceptions (unchecked) and checked exception. When you do lots of coding, automatically everything gets clear. There are some exceptions related to Thread which are confusing, best way is understand them by code instead of just memorizing them.


Naseem
[ August 07, 2006: Message edited by: Naseem Khan ]
 
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic