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 collection class in java? List down its methods and interfaces.

970


When does an object becomes eligible for garbage collection in java?

1072


What is Garbage Collection in Java

1090


What is the use of default method in interface in java? Explain

1011


Does substring start with 0?

992


What types of index data structures can you have in java?

1241


Give a brief description of java socket programming?

970


If you are given the name of the function at run time how will you invoke the function?

1141


Does treeset allow null in java?

965


Explain about collection interface in java?

997


What are thread groups?

1012


How many ways can you break a singleton class in java?

989


How many bits is a 64 bit byte?

1090


What are serialization and deserialization?

1275


What is n in java?

963