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(); } }

21st Apr 2019, 7:12 AM
SANA
SANA - avatar
1 Answer
+ 1
Do you have question about this code? Output: 154 100 522
21st Apr 2019, 9:22 PM
Denise Roßberg
Denise Roßberg - avatar