SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Subject JAVA
Presentation of “CONTROL STATEMENT”
Submitted To : Satish
Bansal
Submitted By : Bharat
Rathore
Gaurav Shakya
Varsha Rajak
OUTLINES
• Definition
• Flow Diagram
• Selection Statement
• Iteration Statement
• Jump Statement
Control Statement
A control statement in java is a statement that
determines whether the other statements will be
executed or not. It controls the flow of a
program. An 'if' statement in java determines the
sequence of execution between a set of
two statements
Flow Diagram of CONTROL STATEMENT
Iteration Statement
Control Statements
Jump Statement
Selection Statements
If.. else
Switch..cas
e
while do while for
continue
break
Selection Statement
If-Else Statement
If the condition is true then, it will
execute the If block. Otherwise, it will
execute the Else block.
Switch Statement
Switch statement allows program to select
one action among multiple actions during the
program execution.
Syntax:
Switch(variable/value/expression){
Case :
// statements [];
Case :
// statements [];
…
default:
// statements [];
}
Syntax:
if(condition){
// statements (if Block)
}
else{
// statements (Else block)
}
Iteration
Statement
For loop
For loop is an entry control
loop. In for loop we are require
to pass three arguments
while loop
While loop is an entry control loop.
In while loop the condition is
checked first and then the
statements of the loop are
executed.
Do while loop
It is an exit control loop. In
the do while loop are
executed first and then the
condition is checked and this
loop is executed at least
once time whether the
condition is true or false
Syntax :
for(initialization ;test condition
;increment/decrement)
{
Statements;
Statements;
}
Syntax :
while(condition)
{
statements;
statements;
}
syntax:
do
{
statements;
statements;
}while(condition)
Jump Statement
Break
On execution of “break” statement
the control jumps out of the loop.
Syntax:
{
—-
—-
if (condition)
break;
—–
—–
}
Continue
On execution of “continue” statement
the control jumps to the beginning
of the loop.
Syntax:
{
—-
—-
if (condition)
continue;
—–
—–
}
Presentation of control statement

More Related Content

PDF
Java variable types
PPTX
Basic Concepts of OOPs (Object Oriented Programming in Java)
PPTX
Control statements in c
PPTX
Control structures in java
PPTX
Inheritance in java
PPTX
Presentation on-exception-handling
PPTX
Operators in java
PPTX
Control Statements in Java
Java variable types
Basic Concepts of OOPs (Object Oriented Programming in Java)
Control statements in c
Control structures in java
Inheritance in java
Presentation on-exception-handling
Operators in java
Control Statements in Java

What's hot (20)

PPTX
C++ decision making
PPTX
Interfaces in java
PPTX
Inheritance in java
PPTX
Operators in java
PPTX
Exception Handling in Java
PPTX
classes and objects in C++
PPT
Java awt
PDF
Class and Objects in Java
PPTX
Method overloading
PPTX
Nesting of if else statement & Else If Ladder
PPTX
Data types in java
PPTX
Functions in c++
PPTX
Exception Handling in object oriented programming using C++
PPTX
Decision making and branching
PPTX
Function overloading and overriding
PPTX
Exception handling c++
PPT
friend function(c++)
PPT
PPT
Exception Handling in JAVA
PPTX
Operators and expressions in c language
C++ decision making
Interfaces in java
Inheritance in java
Operators in java
Exception Handling in Java
classes and objects in C++
Java awt
Class and Objects in Java
Method overloading
Nesting of if else statement & Else If Ladder
Data types in java
Functions in c++
Exception Handling in object oriented programming using C++
Decision making and branching
Function overloading and overriding
Exception handling c++
friend function(c++)
Exception Handling in JAVA
Operators and expressions in c language
Ad

Similar to Presentation of control statement (20)

PDF
Control flow statements in java web applications
PPTX
Control statements in Java
PPT
Control statements
PPTX
PPTX
Object oriented programming_Unit1_contro statements.pptx
PPTX
Java 2.pptx
PPTX
Control statements in java
PPTX
Control structures
PPTX
Java Control Statements
PPTX
Lecture - 5 Control Statement
PDF
csj-161127083146power point presentation
PPT
Control statements in java programmng
PPTX
control statements
PDF
Java chapter 5
PPTX
Java Control Statement Control Statement.pptx
PPT
_Java__Expressions__and__FlowControl.ppt
PPTX
Flow of control by deepak lakhlan
PPT
Control statements
PPTX
controlStatement.pptx, CONTROL STATEMENTS IN JAVA
PDF
Lecture 7 Control Statements.pdf
Control flow statements in java web applications
Control statements in Java
Control statements
Object oriented programming_Unit1_contro statements.pptx
Java 2.pptx
Control statements in java
Control structures
Java Control Statements
Lecture - 5 Control Statement
csj-161127083146power point presentation
Control statements in java programmng
control statements
Java chapter 5
Java Control Statement Control Statement.pptx
_Java__Expressions__and__FlowControl.ppt
Flow of control by deepak lakhlan
Control statements
controlStatement.pptx, CONTROL STATEMENTS IN JAVA
Lecture 7 Control Statements.pdf
Ad

Recently uploaded (20)

PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PPTX
Geodesy 1.pptx...............................................
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PPT
Mechanical Engineering MATERIALS Selection
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPT
introduction to datamining and warehousing
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
Well-logging-methods_new................
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPT
Total quality management ppt for engineering students
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Fundamentals of safety and accident prevention -final (1).pptx
Geodesy 1.pptx...............................................
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
R24 SURVEYING LAB MANUAL for civil enggi
Embodied AI: Ushering in the Next Era of Intelligent Systems
III.4.1.2_The_Space_Environment.p pdffdf
Mechanical Engineering MATERIALS Selection
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
introduction to datamining and warehousing
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
UNIT 4 Total Quality Management .pptx
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Well-logging-methods_new................
Automation-in-Manufacturing-Chapter-Introduction.pdf
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Total quality management ppt for engineering students
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf

Presentation of control statement

  • 1. Subject JAVA Presentation of “CONTROL STATEMENT” Submitted To : Satish Bansal Submitted By : Bharat Rathore Gaurav Shakya Varsha Rajak
  • 2. OUTLINES • Definition • Flow Diagram • Selection Statement • Iteration Statement • Jump Statement
  • 3. Control Statement A control statement in java is a statement that determines whether the other statements will be executed or not. It controls the flow of a program. An 'if' statement in java determines the sequence of execution between a set of two statements
  • 4. Flow Diagram of CONTROL STATEMENT Iteration Statement Control Statements Jump Statement Selection Statements If.. else Switch..cas e while do while for continue break
  • 5. Selection Statement If-Else Statement If the condition is true then, it will execute the If block. Otherwise, it will execute the Else block. Switch Statement Switch statement allows program to select one action among multiple actions during the program execution. Syntax: Switch(variable/value/expression){ Case : // statements []; Case : // statements []; … default: // statements []; } Syntax: if(condition){ // statements (if Block) } else{ // statements (Else block) }
  • 6. Iteration Statement For loop For loop is an entry control loop. In for loop we are require to pass three arguments while loop While loop is an entry control loop. In while loop the condition is checked first and then the statements of the loop are executed. Do while loop It is an exit control loop. In the do while loop are executed first and then the condition is checked and this loop is executed at least once time whether the condition is true or false Syntax : for(initialization ;test condition ;increment/decrement) { Statements; Statements; } Syntax : while(condition) { statements; statements; } syntax: do { statements; statements; }while(condition)
  • 7. Jump Statement Break On execution of “break” statement the control jumps out of the loop. Syntax: { —- —- if (condition) break; —– —– } Continue On execution of “continue” statement the control jumps to the beginning of the loop. Syntax: { —- —- if (condition) continue; —– —– }