Object Oriented Programming (OOPs)

© examsiri.com
Question : 46 of 72
 
Marks: +1, -0
Given:
1. static class A {
2.   void process() throws Exception { throw new Exception(); }
3. }
4. static class B extends A {
5.   void process() { System.out.println("B"); }
6. }
7. public static void main(String[] args) {
8.   new B().process();
9. }

What is the result?
Go to Question: