- 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

24th May 2020, 7:55 PM
GUANLIANG Shi
GUANLIANG Shi - avatar
1 Answer
0
What's your doubt? Whats your answer?
24th May 2020, 7:58 PM
Jayakrishna 🇼🇳