0
dry run this question
class Test { public Test() { System.out.println("154"); new Test(10, 200); System.out.println("522"); } public Test(int temp) { System.out.println("222"); new Test(1000); System.out.println("44"); } public Test(int data, int temp) { System.out.println("100"); } public static void main(String[] args) { Test obj = new Test(); } }
1 Answer
+ 1
Do you have question about this code?
Output:
154
100
522