Code:
class A { public void process() { System.out.print(”A,”); } } class B extends A { public void process() throws IOException { super.process(); System.out.print(”B,”); throw new IOException(); } } class C{ public static void main(String[] args) { try { new B().process(); } catch (IOException e) { System.out.println(”Exception”); } } }
Comment