Please describe this code and output (888..20):- | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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
1 Answer
+ 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