0

Please describe this code and output (888..20):-

public class Test { static int a=10; int b=20; public static void main(String[] args) { Test t1=new Test(); t1.a=888; t1.b=999; Test t2=new Test(); System.out.println(t2.a+".."+t2.b); } }

5th Dec 2017, 7:23 AM
Prashant Kumar
Prashant Kumar - avatar
2 Respuestas
+ 4
I have comment it in your code of my version to let you understand. If you have other queries. comment it also then. https://code.sololearn.com/cyDr333Zek2E/#java
5th Dec 2017, 8:11 AM
Akash Pal
Akash Pal - avatar