***Welcome to ashrafedu.blogspot.com ***This website is maintained by ASHRAF***

posts

    Java Control Statements

    Java compiler executes the code from top to bottom. The statements in the code are executed according to the order in which they appear. However, Java provides statements that can be used to control the flow of Java code. Such statements are called control flow statements.

    Java provides three types of control flow statements.

    1. Decision Making statements
      • if statements
      • switch statement
    2. Loop statements
      • do while loop
      • while loop
      • for loop
      • for-each loop
    3. Jump statements
      • break statement
      • continue statement

    No comments:

    Post a Comment