However, if you look at the method main(), I have not declared throws. But, still I am able to use stmt "throw new SimpleException ()",
with no exception or issues. I wonder why ?. Please help me to understand.
That is, because you use statement "throw new SimpleException()" in the block of
try, and also the block of the exception
catch catchs the exception,
SimpleException. If the stmt is used outside the try block, you have to write "public static void main (
String []args) throws SimpleException". In this situation, SimpleException will be handled by the
Java VM.
Weij