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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are internal and external variables?

1006


Explain method local inner classes ?

1094


How does java pattern compile work?

1020


What is Session reduplication and how its done?

2084


What is multi level inheritance in java?

1079


What one should take care of, while serializing the object?

955


What is a native method in java programming?

1111


What is the difference between final, finally and finalize()?

1241


What is the benefit of using enum to declare a constant?

1171


What do you mean by hashing?

1166


How to sort numbers in java without array?

1039


Difference between this() and super() ?

1184


Is an integer an object?

1031


What are the advantages of autoboxing?

1068


Is java programming easy?

1043