hi Tim,
An overriding method cannot throw a wider checked exception(s) thrown by overridden method (i.e., cannot throw parent exception of what is thrown in overridden method).
Overriding method is allowed to throw any unchecked exception(s).
Example.
import java.io.*;
class Tempo1
{
protected void method1() throws IOException
{
System.out.println("Im method1 in Tempo1 class");
}
}
public class Tempo extends Tempo1
{
public static void main(
String[] args)
{
}
public void method1() throws Exception
{
System.out.println("Im method1 in Tempo class");
}
}
Thanks,
Raghav