Question: 3. Would this program compile/run? If not, why; if yes, what would be the output? public class ConstChain1 f public static void main(String [ args)(
3. Would this program compile/run? If not, why; if yes, what would be the output? public class ConstChain1 f public static void main(String [ args)( new SubClass); System.out.println) new SubClass (1); class SuperClass public SuperClass() System.out.print("D") public SuperClass (int i)( System.out.print( ""); class SubClass extends SuperClass( public SubClass) this (10), System.out.print("B"); public SubClass(int i) super(i); System.out.print("A")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
