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 are Checked & Unchecked exceptions ?

Answer Posted / aparna

Checked exceptions should be taken care by the user using
try and catch blocks otherwise runtime error occurs
for eg:
class.forName() method throws ClassNotFoundException which
should be caught between try and catch blocks

Unchecked exceptions are taken care by the jvm itself, user
need not worry about these type of exceptions
for eg:
Integer.parseInt() method throws NullPointerException which
need not be placed between try and catch blocks

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a blocking method in Java?

1240


What is the meaning of immutable regarding string?

968


What is return keyword in java?

1053


Should database connections be singleton?

962


Why synchronization is important?

1027


What are the advantages of exception handling in java?

1061


What is the difference between scrollbar and scrollpane?

1090


What is public static?

1034


How dead lock situation occurs in java and how you can identify it?

996


Explain the access modifiers for a class, method and variables?

1142


How do you remove duplicates in java?

1019


How do you calculate square roots?

1166


Can we convert list to set in java?

994


Why can we not override static method?

1105


State two differences between C and Java.

1336