OBJECT ORIENTED PROGRAMMING THROUGH JAVA : Unit - 1 : Part:14- Control Statements in Java - Introduction

 

Introduction

A programming language uses control statements to cause the flow of execution to advance and branch based on changes to the state of a program.

Java’s program control statements can be put into the following categories: selection, iteration, and jump.

ü  Selection and conditional statements allow your program to choose different paths of execution based upon the outcome of an expression or the state of a variable.

        a. simple if

        b. if else

        c. if else-if else

        d. nested if else


ü  Iteration statements enable program execution to repeat one or more statements (that is, iteration statements form loops).

    a. while

    b. do while

    c. for loop

    d. nested loops


  • Jump statements allow your program to execute in a nonlinear fashion. All of Java’s control statements are examined here
            a. break
            b. continue

Comments

Popular posts from this blog

Career Guide - B.Tech Students

Artificial Intelligence - UNIT - 1 Topic - 1 : Introduction to AI (Artificial Intelligence)

Financial Aid for Students: Scholarships from Government, NGOs & Companies