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 are the changes in java.io in java 8 ?

1082


Why is the type for real numbers called double?

1019


Write a function to print Fibonacci series and Tribonacci series?

1218


How do you get length in java?

1088


What is scope & storage allocation of static, local and register variables? Explain with an example.

1053


Explain the available thread states in a high-level?

1012


How many bits is a double?

1060


Differentiate between a class and an object.

1073


Can we declare register variable as global?

966


What does jenkins do?

971


What are the two types of java?

1256


What is size of int in java?

1102


What is variable argument in java?

1071


What are the types of casting?

1119


How does class forname work in java?

1025