Question: Following classes are given. In the test class the following object is created. T objectT=new T (Object); What will be displayed on the screen? public

Following classes are given. In the test class the following object is created. T objectT=new T ("Object"); What will be displayed on the screen? public class A{ public A() { System.out.print("A"); } } public class C extends A{ public C(){ System.out.print(""); } public C (String name) { System.out.print(name); } } public class Textends C{ public T() { System.out.print("T"); } public T (String name) { super(name); System.out.println("T constructed"); } } A Object A Object T constructed T constructed Object T constructed
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
