Hello
java PPL
Please go through the code carefully
Assume it to be in some method
try
{
}
catch(java.io.IOException t) //line 1
{
System.out.println("Inside Catch");
}
When method is called:
Compiler error complaining about the catch block where no IOException object can ever be thrown
on the other hand if I use catch (Exception s){} at line 1 argument it compiles alright why???
Regards Denish