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

What's hot (20)

PPTX
Control structures in c++
Nitin Jawla
 
PPTX
Storage Class in C Progrmming
Kamal Acharya
 
PPTX
Chapter-7 Relational Calculus
Kunal Anand
 
PPTX
Control statements in java
Madishetty Prathibha
 
PPTX
Classes objects in java
Madishetty Prathibha
 
PPTX
Method overloading
Lovely Professional University
 
PPTX
SQL - DML and DDL Commands
Shrija Madhu
 
PPT
RECURSION IN C
v_jk
 
PPTX
Java exception handling
BHUVIJAYAVELU
 
PPTX
Static keyword ppt
Vinod Kumar
 
PPT
Control Structures
Ghaffar Khan
 
PPT
Switch statements in Java
Jin Castor
 
PPSX
Data Types & Variables in JAVA
Ankita Totala
 
PPTX
java programming- control statements
jyoti_lakhani
 
PPTX
DBMS Keys
Tarun Maheshwari
 
PPTX
Nested queries in database
Satya P. Joshi
 
PPTX
Lec 7 query processing
Md. Mashiur Rahman
 
PPTX
Dynamic memory allocation in c
lavanya marichamy
 
Control structures in c++
Nitin Jawla
 
Storage Class in C Progrmming
Kamal Acharya
 
Chapter-7 Relational Calculus
Kunal Anand
 
Control statements in java
Madishetty Prathibha
 
Classes objects in java
Madishetty Prathibha
 
Method overloading
Lovely Professional University
 
SQL - DML and DDL Commands
Shrija Madhu
 
RECURSION IN C
v_jk
 
Java exception handling
BHUVIJAYAVELU
 
Static keyword ppt
Vinod Kumar
 
Control Structures
Ghaffar Khan
 
Switch statements in Java
Jin Castor
 
Data Types & Variables in JAVA
Ankita Totala
 
java programming- control statements
jyoti_lakhani
 
DBMS Keys
Tarun Maheshwari
 
Nested queries in database
Satya P. Joshi
 
Lec 7 query processing
Md. Mashiur Rahman
 
Dynamic memory allocation in c
lavanya marichamy
 

Similar to Presentation of control statement (20)

PDF
Control flow statements in java web applications
RajithKarunarathne1
 
PPTX
Control statements in Java
Jin Castor
 
PPT
Control statements
CutyChhaya
 
PPTX
6.pptx
HarishNayak47
 
PPTX
Java 2.pptx
usmanusman720379
 
PPTX
Control structures
Gehad Enayat
 
PPTX
Java Control Statements
KadarkaraiSelvam
 
PPTX
Control Statements in Java
Niloy Saha
 
PPTX
Lecture - 5 Control Statement
manish kumar
 
PDF
csj-161127083146power point presentation
deepayaganti1
 
PPT
Control statements in java programmng
Savitribai Phule Pune University
 
PPTX
control statements
Azeem Sultan
 
PDF
Java chapter 5
Mukesh Tekwani
 
PPTX
Java Control Statement Control Statement.pptx
changepass
 
PPT
_Java__Expressions__and__FlowControl.ppt
JyothiAmpally
 
PPTX
Flow of control by deepak lakhlan
Deepak Lakhlan
 
PPT
Control statements
raksharao
 
PPTX
controlStatement.pptx, CONTROL STATEMENTS IN JAVA
DrNeetuSharma5
 
PDF
Lecture 7 Control Statements.pdf
SalmanKhurshid25
 
PPTX
Java Decision Control
Jayfee Ramos
 
Control flow statements in java web applications
RajithKarunarathne1
 
Control statements in Java
Jin Castor
 
Control statements
CutyChhaya
 
Java 2.pptx
usmanusman720379
 
Control structures
Gehad Enayat
 
Java Control Statements
KadarkaraiSelvam
 
Control Statements in Java
Niloy Saha
 
Lecture - 5 Control Statement
manish kumar
 
csj-161127083146power point presentation
deepayaganti1
 
Control statements in java programmng
Savitribai Phule Pune University
 
control statements
Azeem Sultan
 
Java chapter 5
Mukesh Tekwani
 
Java Control Statement Control Statement.pptx
changepass
 
_Java__Expressions__and__FlowControl.ppt
JyothiAmpally
 
Flow of control by deepak lakhlan
Deepak Lakhlan
 
Control statements
raksharao
 
controlStatement.pptx, CONTROL STATEMENTS IN JAVA
DrNeetuSharma5
 
Lecture 7 Control Statements.pdf
SalmanKhurshid25
 
Java Decision Control
Jayfee Ramos
 
Ad

Recently uploaded (20)

PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PPTX
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PPTX
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
PDF
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
PDF
monopile foundation seminar topic for civil engineering students
Ahina5
 
PPTX
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
DOCX
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPT
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PPTX
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
PPTX
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PPTX
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
PPTX
Introduction to Neural Networks and Perceptron Learning Algorithm.pptx
Kayalvizhi A
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
Thermal runway and thermal stability.pptx
godow93766
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
monopile foundation seminar topic for civil engineering students
Ahina5
 
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
Introduction to Neural Networks and Perceptron Learning Algorithm.pptx
Kayalvizhi A
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
Ad

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; —– —– }