Control Statements


The statement of java program will be executed in sequential order. If we dont want to execute the statements in sequential order i.e. if we want to execute the statements in random order according to programmer choice, then we take the help of control statements.

The control statements will help the programmer to control the flow of execution in a java program. The control statements are classified as following

Conditional Statements

  • if else statement
  • switch statement

Iterating Statement

  • for loop
  • while loop
  • do-while loop
  • for each loop

Transfer Statements

  • break
  • continue
  • return

Leave a Reply