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 the difference between error and exception and
explain in simple words not whatever is given in the book.

Answer Posted / muffy.jad@gmail.com

An error is an irrecoverable condition occurring at runtime.
Such as OutOfMemory error. These JVM errors and you can not
repair them at runtime.

While exceptions are conditions that occur because of bad
input etc. e.g. FileNotFoundException will be thrown if the
specified file does not exist. Or a NullPointerException
will take place if you try using a null reference.

In most of the cases it is possible to recover from an
exception

Is This Answer Correct ?    26 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain public static void main(string args[]).

1183


What is module in project?

961


What is keyword auto for?

1188


How do you replace a string in java?

1010


What is the purpose of checked and unchecked exceptions in JAVA?

1013


How do you find the absolute value?

1062


How do you read a char in java?

1027


Why string is immutable or final in java

1093


What is core java used for?

1127


What is a generic code?

1068


What is the do while loop syntax?

1037


What are different data types?

1026


What are the six ways to use this keyword?

1061


Why put method is idempotent?

919


How can I become a good programmer?

983