class Apple
{
public void m1() throws SecurityException
{
System.out.println("I want more apple");
}
}
public class Orange extends Apple
{
public void m1() throws SecurityException
{
System.out.println("I want more Orange");
}
public static void main(
String [] args)
{
Orange p = new Orange();
p.m1();
}
}
Now if we change SecurityException either by IOException,Exception etc...we will get an error... Can anybody give the complete hierarchy of the Checked,Unchecked Exceptions(Better,give the complete hierarchy starting from Throwable)..