Java Control Flow of Statements

Categories: Core Java

There are three main categories of control flow statements:

  1. Selection Statements:Selection statement allows the program to choose any one path from different set of paths of execution.
    1. if Statement
    2. if-else Statement
    3. Nested if-else Statement
    4. if-else-if Statement
    5. switch case Statement
  2. Loop/Iteration Statements:Looping is a process by which we can repeat a single statement or a group of statements n number of times.

    1. for Loop
    2. while Loop
    3. do-while Loop
    4. for each Loop
  3. Transfer/Jump Statements:Jump statements can be used to modify the behavior of conditional and iterative statements. Jump statements allow you to exit a loop, start the next iteration of a loop, or explicitly transfer program control to a specified location in your program.
    1. break
    2. continue
    3. Labeled break
    4. Labeled continue
    5. return

Top articles
Core Java Indroductions Published at:- Features of Java Published at:- Difference between Java and C Published at:- Difference between Java and C++ Published at:- Advantage and Disadvantage of Java Published at:- What is Java Published at:- Why Java is not Pure Object Oriented Language Published at:- Where and why Java is used Published at:- Java has Following Features Characteristics Published at:- Common Misconception about Java Published at:- 3 most commonly used tools are Published at:- Stream Creation-Jav 8.0(JDK1.8) Published at:- Data Type in Java-Size in Bytes & Bits . Published at:- Operators in Java-Assignment, increment and decrement, equality, arithmetic ,relational , logical, bit-wise, compound assignment Published at:- Java Control Flow of Statements Published at:- Java switch case and conditional operator Selection Statement Published at:- for and while Loop-Java Published at:- Java General Interview Questions and Answer Published at:- Write a program in Java to display the first 10 terms of the following series: 10, 20, 30, 40, …….. Published at:- Write the program in Java to display the first ten terms of the following series: 1, 4, 9, 16, Published at:- Write a program in Java to find the sum of the given series: Published at:- Write a program in Java to find the sum of the given series: Published at:- Why Proxies Are the Silent Backbone of Modern Online Operations Published at:-
R4Rin Team
The content on R4Rin.com website is created by expert teams.