Exception Handling
© examsiri.com
Question : 4 of 24
Marks:
+1,
-0
Given:
What is the result?
1. class A {
2.   public void process() { System.out.print("A,"); }
3.   class B extends A {
4.    public void process() throws IOException {
5.     super.process();
6.     System.out.print("B,");
7.     throw new IOException();
8.    }
9.   public static void main(String[] args) {
10.    try { new B().process(); }
11.    catch (IOException e) { System.out.println("Exception"); }}What is the result?
Go to Question: