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 is the method in java?

1101


What checkbox method allows you to tell if a checkbox is checked?

1011


What is another word for methodology?

1017


What is json parser in java?

1058


When we serialize an object does the serialization mechanism saves its references too?

1019


What do you mean by static variable?

1064


How is final different from finally and finalize?

924


What is literal example?

952


Can singleton class be serialized?

950


How to print an arraylist in java?

1084


Is it safe to install java on my computer?

1140


What is the impact of declaring a method as final?

1019


What are the two types of exceptions in java? Which are the differences between them?

1100


Why is method overloading not possible by changing the return type in java?

1004


Can you override a final method?

1035