Question 12


What is the output of the following code? 1: class Test 2: { 3: Test(int i) 4: { 5: System.out.println("Test(" +i +")"); 6: } 7: } 8: 9: public class Q12 10: { 11: static Test t1 = new Test(1); 12: 13: Test t2 = new Test(2); 14: 15: static Test t3 = new Test(3); 16: 17: public static void main(String[] args) 18: { 19: Q12 Q = new Q12(); 20: } 21: } A) Test(1) Test(2) Test(3) B) Test(3) Test(2) Test(1) C) Test(2) Test(1) Test(3) D) Test(1) Test(3) Test(2)