Post

@EclipseJavaIDE t1
t2
First of all, check the condition, execute the loop and execute the increment. (Sorry, I answer in spanish before :S)
English

@EclipseJavaIDE t1
t2
Would be infinite loop if i is post incremented.
English

@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

@EclipseJavaIDE @java 300MB of RAM used by the JVM for 2 lines in the console. Thanks you Java.
English

@EclipseJavaIDE @java I didn't see that they are reassigning value so then is t1 t2
English

@EclipseJavaIDE @java Increment statement is invoked when loop is over so answer should be:
t1
t2
English

@EclipseJavaIDE @java This got print t1 and t2 because you send to print these Strings not any variable
English


























