answersLogoWhite

0

There are two subclasses that derive from Throwable(In the Exception Hierarchy): Exception and Error.

Classes that derive from Error represent unusual situations that are not caused by program errors, and indicate things that would not normally happen during program execution, such as the JVM running out of memory. Generally, your application won't be able to recover from an Error, so you're not required to handle them. If your code does not handle them (and it usually shouldn't and won't), it will still compile with no trouble. Although often thought of as exceptional conditions, Errors are technically not exceptions because they do not derive from class Exception.

In general, an exception represents something that happens not as a result of a programming error, but rather because some resource is not available or some other condition required for correct execution is not present. For example, if your application is supposed to communicate with another application or computer that is not answering, this is an exception that is not caused by a bug.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the exact difference between interrupt handling and exception handling?

interrupt handling is the process of handling a break or interrupt called by a program where as exception handling is for handling some exceptional conditions that'll occur when a program is running


Difference between extra ordinary items and exceptional items?

is compensation received an exceptional income


What is the noun for exceptional?

The word 'exceptional' is the adjective form of the noun exception.


What is difference between exception handling in C and Java?

Easy: there is no exception-handling in C.


What is difference between anti integration and derivative?

In all but very exceptional cases there is no difference.


What is the noun word for exceptional?

The noun forms for the adjective exceptional are exceptionality and exceptionalness. Another noun form is exception.


Difference between run time error and run time exception in java?

Runtime Error Cannot be Rectified but Runtime Exception can.


Do the words except exception and exceptional mean completely different things?

Except and exception mean leaving out.Exceptional means out of the ordinary or unusual.Except is a preposition -Everyone was invited except me.Exception is a noun- I like to dance with the exception of the tango.Exceptional is an adjective - It was an exceptional piece of music.


How can you use exceptional in a sentence?

His exceptional speed and athleticism made him a high pick despite a rib injury that shortened his season.


What is syntax for exceptional handling in java?

try{ statements; } catch(Exception e) { message }


Is there an exception to the rule of difference between organic and inorgantic compounds?

no because the chemicals are not intrudent to the local content


What Difference between exception and assertion?

Exception means not included in general sense. Any subject an ve connotaion in general with few exeption. Assertion means asserting one's authority