Control Statements

Control statements are statements or set of instructions which we give inside the function to control the work flow. These are very important in programming.

Imagine you are going to a store to buy a kg of sugar. You are asking the shopkeeper to give a kg of sugar. What he will do?

He will give you 1 kg of sugar after weighing or give a previously weighed packet. Right ?

To do similar works like weighing in above example using programming, we can use control statements.

Control statements are classified into three categories

This is only the introduction of control statements. You will learn the classification of control statements in Java detailly in upcoming topics.

The basics of programming are enough to learn Java. Now we can go into Java.