Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2005

Tip: Looking for answers? Try searching our database.

Catched Exception / Uncatched Exception

Thread view: 
Jerry - 17 Jun 2005 05:51 GMT
What is the differences between catched exception and uncatched exception?

Thank a lot!
Stefan Schulz - 17 Jun 2005 09:18 GMT
> What is the differences between catched exception and uncatched exception?

I am a bit confused about this question. Do you mean checked vs. unchecked?

In case you actually mean what you asked, a caught exception is handled in
the catch-block that caught it, while an uncaught is propagated to the
calling method, or possibly to the top level.

Signature

In pioneer days they used oxen for heavy pulling, and when one ox
couldn't budge a log, they didn't try to grow a larger ox. We shouldn't
be trying for bigger computers, but for more systems of computers.
          --- Rear Admiral Grace Murray Hopper

Jerry - 17 Jun 2005 19:36 GMT
Yeah, my question is what is the differences between checked exception
vs. unchecked exception.

Thanks,

> > What is the differences between catched exception and uncatched exception?
>
[quoted text clipped - 3 lines]
> the catch-block that caught it, while an uncaught is propagated to the
> calling method, or possibly to the top level.
John C. Bollinger - 18 Jun 2005 04:42 GMT
> Yeah, my question is what is the differences between checked exception
> vs. unchecked exception.

All Exceptions *except* RuntimeException and its descendants must be
declared by any method that can possibly throw them or allow them to
propagate.  These are the "checked exceptions".  RuntimeException and
its subclasses are "unchecked exceptions"; they do not need to be
declared by methods that throw them or allow them to propagate.  Those
are the basic differences.

(Error and its subclasses are not technically exceptions, but they are
another type of unchecked Throwable.)

Whether a particular application-specific exception class should be
checked or unchecked, and in general whether to use checked or unchecked
exceptions are entirely different and more subjective questions.

Signature

John Bollinger
jobollin@indiana.edu



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.