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 / vatsal doshi

When: At Compile Time

How: Complicated.

Checked Exceptions are those which a Java Compiler is capable of checking at compile time. These exceptions normally occur when some pre-definite methods from the Java API are used by programmer. So compiler identifies such method invocations in the code. If handled using catch, or specified in the throws clause, compiler compiles successfully. Otherwise, it shows a Compile Time Error Message of possibility of a Checked Exception

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is meant by Garbage collection?

1094


What is a pointer and does java support pointers?

1008


Is arraylist ordered?

1080


What is difference between string and stringbuffer?

1106


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

1082


What is final variable?

946


Write a java program to check if a number is prime or not?

1039


Can you explain the usages of class.forname()?

1074


What is nested class?

1000


Explain about the security aspect of java?

967


What is the epoch date?

1023


How to sort an array in java without using sort method?

879


What is java reflection?

985


What is the difference between Java and C++?

1197


What is mean by collections in java?

1180