0
What will be the output?class A{ static void method(){ System.out.println("Class A method"); }}class B extends A{ static void method(){ System.out.println("Class B method"); }}public class Test{ public static void main(String args[]){ A a = new B(); a.method(); }}
- AClass A method
- BClass B method
- CCompilation Error
- DRuntime Error
- ENone of these
Correct answer: A