In an OR statement in Java the left side is evaluated first and if it appears to be true the right side of the statement is considered not important, so Java doesn’t check that side.
So in your case the i++ in de right side of the statement is not being called because t is true.
solved Simple Code Explanation in Java Beginner Test