source code issues FullyChecked exception
package exceptions;
import java.io.IOException;
public class FullyCheckedEx {
public static void doMoreStuff()
{
try
{
System.out.println("hai");
}
catch(IOException e) //error (IOException is fully checked exception)
//exception java.io.IOException is never thrown in the body of the
//corresponding try statement
{
System.out.println("catch");
}
}
}
0 comments:
Post a Comment