class A extends Throwable {} class B extends A {} public class exo4 { public static void f() throws B { throw new B(); } public static void main (String [] args) throws A { try { f(); } finally { System.out.println("end!"); } catch (A e) { throw e; } } }