Win a copy of Head First Android this week in the Android forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic