11) Flow Control
Last updated
Last updated
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:
Selection.
Iteration.
Jump.
Selection statements: allow your program to choose different paths of execution based upon the outcome of an expression or the state of a variable.
Iteration statements: enable program execution to repeat one or more statements (that is, iteration statements form loops).
Jump statements: allow your program to execute in a nonlinear fashion.