Thanks...now I understood the rule
Handle & Declare
But in K&B exam watch (page 362) it says
When an object of a subtype of Exception is thrown, it must be handled
or declared.
So...does that mean it can be either handled
or declared. How can I apply to my example below.
As said in K&B if I have a userdefined Exception class like this:
Suppose, I am throwing the userdefined Exception in the risky method - How do I handle? How do I declare.