- 1
Drag and drop from the options below to print "Hello".
class A { public void print() { System.out.println("A"); } } class B { public static void main(String[ ] args) { ___object = ___ A() { @Override public void___ () { System.out.println( ); } }; object.print(); } } String "Hello". print B A extends new
1 Answer
0
What's your doubt? Whats your answer?