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...

how and when compiler knows that the Java code throws the
checked Exception.

Answer Posted / aruna

Checked or caught exceptions are those exceptions that the
application programmer created a catch block to handle them.
while compiling, the java compiler make sure that all the
checked exceptions must be caught by the applicaion
programmer.Those exceptions are called the application or
business logic exceptions.

Inside the method body, there are calls to other methods;
the compiler looks at each of their method signature, what
exceptions they declared to throw. There are two
possibilities, either exceptions are caught inside the
caller-method by a try-catch block, or the caller declares
to throw the exception to its caller.

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the multi-catch block in java?

1025


What is difference between final and finally in java?

1071


What are the types of java?

1087


What's the purpose of using break in each case of switch statement?

970


What are the basics of core java?

1009


Does java support multiple inheritance or not?

1088


What is the advantage of preparedstatement over statement?

1098


List some oops concepts in java?

1024


Why we go for collections in java?

968


Explain exception chaining in java?

1157


Explain try and catch keywords in java?

1197


When super keyword is used?

1007


How do you reverse sort a list in java?

927


Explain about the performance aspects of core java?

1043


Why string is not thread safe?

1000