A checked exection is any exception that is expected to be handled by the developer. If your compiler complains that an exception isn't handled in your code, then the exception you aren't handling is a checked exception. The compiler is 'checking' to see if you handled it in your code. Runtime exceptions are not checked. The compiler doesn't EXPECT you to handle them however you can catch them if you want.
By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
Hemant Agarwal
Ranch Hand
Joined: Nov 21, 2005
Posts: 138
posted
0
Is it possible to create RunTime Exceptions in my code?
Michael Duffy
Ranch Hand
Joined: Oct 15, 2005
Posts: 163
posted
0
Originally posted by Hemant Agarwal: Is it possible to create RunTime Exceptions in my code?