In this post, we are going to discuss what is control statement in java? In Java, programs is a set of statements and which are executed sequentially in the order in which they appear. In that statements, some calculation has need of executing with some conditions and for that condition, we have to provide control to that statements. In other words, control statements are used to provide the flow of execution with the condition.
control statements are used to transfer control from one statement in a program to any other statement. The control statements are classified as:
- Decision-making statement
- Looping statement
- Jumping statement
control statements are used to transfer control from one statement in a program to any other statement. The control statements are classified as:
- Decision-making statement
- Looping statement
- Jumping statement