Question: 5. Show the printout for the following program. public class Test { public static void main(String[] args) { T t1 = new T(); System.out.println(t1's
5. Show the printout for the following program. public class Test { public static void main(String[] args) { T t1 = new T(); System.out.println("t1's i=" + tl.i + T t2 = new T(); System.out.println("t2's i=" + t2.i + } } class T { static int i int j = 0; T() { i++; jtti = 0; "V "1 and j=" + tl.j); and j=" + t2.j); Please note that is static
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
