Vishwajeet Nambiar

Greenhorn
+ Follow
since May 23, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vishwajeet Nambiar

Well I think first you need to use the correct vocabulary. There are no compile time exceptions. There are checked exceptions which the compiler checks that you handle properly i.e. the compiler checks where they can occur and there are proper try-catch block or throws clause to handle them. Then there are unchecked exceptions which are not checked by the compiler i.e. the compiler doesn't check where they can occur and doesn't care if there are try-catch or throws for them.

That's the end of the story but if you are confused between JVM exceptions and programmatic exceptions. JVM exceptions are thrown by the JVM at runtime. Like ArrayIndexOutOfBoundsException or ClassCastException. These are thrown when something unexpected happens. These are limited in number and are unchecked. Programmatic exceptions are thrown using a throw statement. They are not automatically thrown by the JVM. These are large in number and can be checked or unchecked. The list of programmatic and JVM exceptions covered in the exam is given in K&B. So you don't need to know about all the exceptions that there are in the API...



Good Explanation..Here is a link from the Sun site that could help..Exceptions