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 Checked and Unchecked
exception? Give some examples

Answer Posted / padmaja

1. Checked exceptions are exceptions that must be
declared in the throws clause of a method. A checked
exception indicates an expected problem that can occur
during normal system operation. Checked exceptions must be
2. Unchecked exceptions are exceptions that do not
need to be declared in a throws clause. An unchecked
exception indicates an unexpected problem that is probably
due to a bug in the code. The most common example is a
NullPointerException.They don't have to be caught or
declared thrown.
3. Checked exceptions in Java extend the
java.lang.Exception class. Unchecked exceptions extend the
java.lang.RuntimeException.

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why string is not a wrapper class?

1148


I want to store more than 10 objects in a remote server? Which methodology will follow?

3143


Why do I need to declare the type of a variable in java?

1008


How does system arraycopy work in java?

1064


What are thread local variables?

1068


Why are the destructors for base class and derived class called in reverse order when the program exits

2138


What is java Applet?

1045


What is the technique adopted to create an immutable class?

1052


When will we use them?

987


What function extracts specified characters from a string?

965


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

924


What is the use of static class?

1105


What is collection api?

1011


What is the purpose of the file class in java programming?

968


Is linkedlist thread safe in java?

954