Show the output of following program:
1 public class Test {2 public static void main(String[] args) {3 A a = new A(3);4 }5 }67 class A extends B {8 public A(int t) {9 System.out.println("A's constructor is invoked");10 }11 }1213 class B {14 public B() {15 System.out.println("B's constructor is invoked");16 }17 }Is the no-arg constructor of Object invoked when new A(3) is invoked?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.