Menu
Topics Index
...
`

Control Statements

The control statements, as the name suggests controls the flow of the program. Depending upon the state ( values of variables, user input etc ) the appropriate code is executed.
Control Statements are divided into three types those are Selection Statements, Iteration statements and Jump Statements.

Selection Statements

Java supports two selection statements - if and switch. These statements allow us to control the flow of the program. Depending upon the expressions or values, the corresponding blocks/statements of code will be executed or by passed.
To lean more read this topic To learn more about Selection Statements In Java read this topic Selection Statements In Java

As we read above the following are the Selection statements
  1. if : To learn more about if Condition In Java read this topic if Condition In Java.

  2. Write test for above topic
  3. switch : To learn more about switch Statement In Java read this topic switch Statement In Java.

  4. Write test for above topic

Iteration statements (Loops)

Java's Iteration statements are for, while and do-while. These statements are commonly called as loops. A loop repeatedly executes the same set of instructions until a termination condition is met.
To learn more about Iteration Statements Or Loops In Java read this topic Iteration Statements Or Loops In Java.

As we read the folloing are the Iteration statements
  1. while : To learn more about while Loop In Java read this topic while Loop In Java.
  2. do while : To learn more about do while Loop In Java read this topic do while Loop In Java
  3. for : To learn more about for Loop In Java read this topic for Loop In Java

  4. Write test for above topics

Jump Statements

Java supports three jump statements: break, continue, and return. These statements transfer control to another part of your program.
To learn more about Jump Statements In Java read this topic Jump Statements In Java

As we read above the following are the Jump statements

  1. break : To learn more about Using break in switch case Statement read this topic Using break in switch case Statement
  2. continue : To learn more about Java continue Statement read this topic Java continue Statement
  3. return : To learn more about Java return Statement read this topic Java return Statement

  4. Write test for above topics

<< Go back to 2-2 lesson plan

© meritcampus 2019

All Rights Reserved.

Open In App