3
What is the output of the following program?
class A { static String s() { return "A"; } }
class B extends A { static String s() { return "B"; } }
class Main {
public static void main(String[] args) {
A obj = new B();
System.out.println(obj.s());
}
}Hard