Question
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();}}
Answer: Option C
Submit Your Solution Below and Earn Points !
Submit Your Solution Below and Earn Points !
Submit Solution