class A extends Exception{}
class B extends A{}
class C extends Exception{}
class FU{ void show()throws A}
class Test{ void method(Fu f)//Fu f = new Zi();
{
try { f.show();
}
catch (A a)
{ }
}
}
class Zi extends Fu{ void show()throws C
{ }
}
class Demo{
public static void main(String[] args) {
Test t = new Test(); t.show(new Zi());
}}
class B extends A{}
class C extends Exception{}
class FU{ void show()throws A}
class Test{ void method(Fu f)//Fu f = new Zi();
{
try { f.show();
}
catch (A a)
{ }
}
}
class Zi extends Fu{ void show()throws C
{ }
}
class Demo{
public static void main(String[] args) {
Test t = new Test(); t.show(new Zi());
}}