Java - Interfaces
What is the output of this code?
interface A { void show(); }
class B implements A {
public void show() { System.out.println("Hello"); }
}
public class Test {
public static void main(String[] args) {
A obj = new B();
obj.show();
}
}