Java Control Statement

18-Sep-2024

Learn the various control statements like if, switch, loops, and breaks in Java.


Java Control Statement Control the flow of the execution in a program. Below given the main types of Control Statements in Java.


1. Decision Making Statements

  •   if Statement
  •   if-else Statement
  •   else-if Statement
  •   switch Statement

2. Looping Statements

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

3. Jump Statements

  •   Break Statement
  •   Continue Statement


We will Learn each of the control statements in the next chapters.


Comments