A programming language uses control statements to control the flow of execution of a program. In Java programming, we can control the flow of execution of a program based on some conditions. Java control statements can be put into the following three categories: selection, iteration, and jump.
The selection statements allow your program to choose a different path of execution based on a certain condition.
Iteration statements allow program execution to repeat one or more statements.
Jump statements transfer the control to other parts of the program.
You may also like these related posts:
The selection statements allow your program to choose a different path of execution based on a certain condition.
Iteration statements allow program execution to repeat one or more statements.
Jump statements transfer the control to other parts of the program.
1. Java Selection Statements:
The Java selection statements allow your program to choose a different path of execution based on a certain condition. Java selection statements provide different type of statements such as:
2. Java Iteration Statements:
Java Iteration statements allow program execution to repeat one or more statements. java Iteration statements provide different type of statements such as:
3. Java Jump Statements:
Java Jump statements transfer the control to other parts of the program. java Jump statements provide different type of statements such as:
You may also like these related posts:
1. Types of Operators in Java with example.
2. Basic data types in Java with example.
3. How to set path in java.
4. Types of variables in Java with example.
5. Java Hello World program | java first program.
6. Top 100 java interview question and answer.
2. Basic data types in Java with example.
3. How to set path in java.
4. Types of variables in Java with example.
5. Java Hello World program | java first program.
6. Top 100 java interview question and answer.
Java Control Statements | Java Decision Making
Reviewed by Prashant Srivastava
on
December 16, 2019
Rating:
No comments: