ShivMohan says,
So if the checkedException is caught or declared in the method,we must throw it in try block.Am i correct
Nay,
In case you declare the checked exception in the method, you need not to throw it in that, you mean by declaring that you are ducking the exception.
In case of try catch case , you are correct.
No problem with this code!!!
Regards,
cmbhatt
[ April 20, 2007: Message edited by: Chandra Bhatt ]