# for Java Keyword

The for keyword specifies a loop whose condition is checked before each iteration.

## Examples

      int i;
      for (i=0; i<max; i++)
      {
         <statements>
      }

## Remarks

- The for statement takes the form for(initialize; condition; increment)

  The initialize statement is executed once as the flow of control enters the for statement.

  The condition is evaluated before each execution of the body of the loop. The body of the loop is executed if the condition is true.

  The increment statement is executed after each execution of the body of the loop, before the condition is evaluated for the next iteration.

Related Topics

break Java Keyword

continue Java Keyword

do Java Keyword

while Java Keyword