<Tr> <Td> Infinite loop </Td> </Tr> <Tr> <Td> Control flow </Td> </Tr> <P> In computer science, a for - loop (or simply for loop) is a control flow statement for specifying iteration, which allows code to be executed repeatedly . The syntax of a for - loop is based on the heritage of the language and the prior programming languages it borrowed from, so programming languages that are descendants of or offshoots of a language that originally provided an iterator will often use the same keyword to name an iterator, e.g., descendants of ALGOL use "for", while descendants of Fortran use "do ." There are other possibilities, for example COBOL which uses "PERFORM VARYING". </P> <P> Unlike many other kinds of loops, such as the while - loop, the for - loop is often distinguished by an explicit loop counter or loop variable . This allows the body of the for - loop (the code that is being repeatedly executed) to know about the sequencing of each iteration . For - loops are also typically used when the number of iterations is known before entering the loop . For - loops are the shorthand way to make loops when the number of iterations is known, as every for - loop could be written as a while - loop . </P>

What is the meaning of for loop in java