11) Flow Control

Java Control statements in a programming language are very useful as they allow a programmer to change the flow of program execution i.e. altering the normal program flow to jump directly on some statement or to skip a statement.

Java’s program control statements can be put into the following categories:

  1. Selection.

  2. Iteration.

  3. Jump.

  4. Selection statements: allow your program to choose different paths of execution based upon the outcome of an expression or the state of a variable.

  5. Iteration statements: enable program execution to repeat one or more statements (that is, iteration statements form loops).

  6. Jump statements: allow your program to execute in a nonlinear fashion.

Last updated