Skip to main content

Posts

Showing posts with the label control statements in java

Control Statements

Control Statements:- Control statements are used to manage flow of execution. Statements are:- 1.      If statement 2.      If-else 3.      Switch-case 4.      Break 5.      Continue 6.      Return If Statement:- if statement is used for control statement or statements, those statements we want to control we have to write inside if block those statements will execute only when the condition is true. Syntax:- Single statement Multiple statement If(condition)                                      Statement1; If(condition)  {                  ...