Question: 20. What is the output of this program? import java.io.IOException; public class Derived { public void getDetails() throws IOException { System.out.println(Derived class); w public class

 20. What is the output of this program? import java.io.IOException; public

20. What is the output of this program? import java.io.IOException; public class Derived { public void getDetails() throws IOException { System.out.println("Derived class"); w public class Test extends Derived { public void getDetails() throws Exception { System.out.println("Test class"); public static void main(String[] args) throws IOException { Derived obj = new Test(); obj.getDetails(); A. Compilation error due to line 23 B. Compilation error due to line 24 C. Compilation error due to line 25 D. All the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!