Java

hard
0/15 answered
Q1

What is the output of: class A { int x = 10; } class B extends A { int x = 20; void print() { System.out.println(super.x + " " + x); } } new B().print();

1 / 15