Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is difference between Exception and Error?

Answers were Sorted based on User's Feedback



what is difference between Exception and Error?..

Answer / shivaprasad

Exceptions are those which can be handled at the run time
where as errors cannot be handled.
Examples for exceptions: Array out of bonds, attempt to
divide by zero etc.
Exceptions can be handled by handlers using try - catch.

Is This Answer Correct ?    279 Yes 48 No

what is difference between Exception and Error?..

Answer / shahnawaz ali shah

Exception is coverable
Error is uncoverable

Exception can be handled
and Error can not be handled

Exceptio is an run time error when an abnormal condition is
occured the jvm detect it and make the object of that
abnormal condition and throws it to its own class and that
object is catched by catched block and catch block handled it

Error is the compile time error not runtime and it is not
covered it is only fixed by a programer.

Note
When Error occur then our programe stops and donot run

but If exception occur then nothing happining only try block
will be suspended and after that if any code is written that
will be executed properly means our system or programe work
properly.

Is This Answer Correct ?    116 Yes 17 No

what is difference between Exception and Error?..

Answer / ganesh

Exception means When a method encounters an abnormal
condition (an exception condition) that it can't handle
itself, it may throw an exception.
Error mens system doesn't handle.For example:Overflow,Out
of memory.

Is This Answer Correct ?    68 Yes 26 No

what is difference between Exception and Error?..

Answer / sandeep tyagi

The functional diiference, in terms of the compiler, is
that you don't have to declare errors in throws clauses on
methods, or catch them.

Conceptually, an Error means something has gone wrong with
your program, which should usually give up and crash,
whereas an exception is for an unusual situation that you,
as a programmer, anticipated as a possibilty. So, for
example, a divide-by-zero is an Error, but attempting to
read a file and finding it doesn't exist is an Exception.

Is This Answer Correct ?    78 Yes 55 No

what is difference between Exception and Error?..

Answer / pranab garai

Exceptions are also kind of errors which we can hadle at
both compile time and run time by using try and catch
blocks.
These are two types: Compile time and runtime.
Sql and IO operations are come under compile time array
index out of bounds and null pointer these are come under
runtime exceptions

Errors are the problems which we cant hadle, like stack
overflow and memory out of bounds like that...

Is This Answer Correct ?    11 Yes 0 No

what is difference between Exception and Error?..

Answer / saurabh kumar gupta

Errors are the abnormal conditions which can not be handled
by your program and the program will immediately interrupt
while exceptions are those abnormal conditions which your
program can handle with the techniques of error handling.
Errors can not be handled and will stop uour program.

Is This Answer Correct ?    12 Yes 4 No

what is difference between Exception and Error?..

Answer / gireesh

Exceptions are also kind of errors which we can hadle at
both compile time and run time by using try and catch
blocks.
These are two types: Compile time and runtime.
Sql and IO operations are come under compile time array
index out of bounds and null pointer these are come under
runtime exceptions

Errors are the problems which we cant hadle, like stack
overflow and memory out of bounds like that...

Is This Answer Correct ?    8 Yes 1 No

what is difference between Exception and Error?..

Answer / mantu

An Exception is an abnormal condition or situation that arises
in a code at run time means they are are run time error.
An exception can be caught handled manually but an error can not be caught or handled.

Is This Answer Correct ?    8 Yes 1 No

what is difference between Exception and Error?..

Answer / zohaib

exception occurs at runtime of your program
while an error may arise during your compile time

Is This Answer Correct ?    12 Yes 6 No

what is difference between Exception and Error?..

Answer / ravikiran

Exception is an abnormal condition occured at runtime.
Error is the one which is of runtime exception type,theat
what we cann't declare in throws clause.

Is This Answer Correct ?    33 Yes 29 No

Post New Answer

More Core Java Interview Questions

difference throws and throw in java

3 Answers  


How dead lock situation occurs in java and how you can identify it?

0 Answers  


Can we declare array without size in java?

0 Answers  


What differences exist between iterator and listiterator?

0 Answers  


What is the difference between synchronized and synchronized block?

0 Answers  


What is the difference between member variables initialization and assignment in a constructor?

0 Answers   Hexaware, Virtusa,


How is Garbage collection done in Java?

3 Answers   T3 Softwares,


Can we change the scope of the overridden method in the subclass?

0 Answers  


Highest level event class of the event-delegation model?

0 Answers  


Explain a few methods of overloading best practices in java?

0 Answers  


Is java still relevant?

0 Answers  


What is data type in computer?

0 Answers  


Categories