Post

🌒 Eclipse Java IDE
🌒 Eclipse Java IDE@EclipseJavaIDE·
What will happen if we run this program? (it's not fun when you cheat ;)
🌒 Eclipse Java IDE tweet media
English
66
34
164
0
Patrick
Patrick@patricktchato·
@EclipseJavaIDE t1 t2 Would be infinite loop if i is post incremented.
English
0
0
3
0
Sagar
Sagar@sagarkoshti·
@EclipseJavaIDE @java t1 t2 t1 t2 t1 t2 ...... infinite cause we call function by value hence actual value of i in for loop will not be incremented.
English
0
0
1
0
Moises
Moises@Moisestoribio·
@EclipseJavaIDE @java This got print t1 and t2 because you send to print these Strings not any variable
English
0
0
0
0
شیئر