posted 15 years ago
Hi Syed,
IOException is a checked exception. You can place the line(s) of code inside the try block and catch it, or declare the method that it throws IOException but you must do one of them. If you are catching IOException and your try block doesn't throw the IOException, it would be a compile time error that IOException is never thrown in the block.
Hope this helps you a bit!
Thanks and Regards,
cmbhatt