1.classA {2. public void process() { System.out.print(”A “); } }3. class B extends A {4. public void process() throws RuntimeException {5. super.process();6. if (true) throw new RuntimeException();7. System.out.print(“B”); }}8. public static void main(String[] args) {9. try { ((A)new B()).process(); }10. catch (Exception e) { System.out.print(”Exception “); }11. }