Any Time Any Where

test

Breaking

Post Top Ad

Your Ad Spot

Tuesday, September 7, 2021

Control Statements

 Control Statement in Java

Java compiler executes the code through and through. The statements in the code are executed by the request wherein they show up. In any case, Java gives proclamations that can be utilized to control the progression of Java code. Such articulations are called control statements. It is one of the crucial components of Java, which gives a smooth progression of program. 

Java gives three kinds of control stream articulations.

  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

Post Top Ad

Your Ad Spot