yes roopa, you are correct. May be on your choice of word...I think when we say an exception is handled, doesn't it mean a problem is taken care of?... Here what you are doing is "declaring" that the method might throws an exception...you are telling the calling method "I am telling you this method you are calling may throw an exception...but it is not my problem...you do what you want with it..."
I think an exception is said to be handled when it is put in a try, catch, finally (optional) statement and is given a lasting solution.
Roopa, everyone...correct me if I am wrong.
Girmay nagesh
Originally posted by Roopa Bagur:
You only have to handle checked exceptions(all subclasses of exception except runtime exception) in your code. You don't have to handle Runtime Exceptions at all..
Anybody correct me if I am wrong