You are on page 1of 3

Name- Salyawaan

Exam Kal! no~ 1g22omATO96


class ellns- C-12SS 2ecfron-83

know n programming
exulion o
As we

is done line by line. Now in omkr To aler


|Code
his floco Cr+povikes,lavo salemenk bneak
and conlbiue uich mainly wcd o sKib some
specitie code al herific bme
coninie
fallouig ane imporant dlperenues hho
ahd baR

Key Bneak Condinue


BneoR sialemenM nainly Coninue saemer.
Linaior Used o deleminale hel
mainly skip e resh.o
enclosirg doop such as ap
whuWe, der wtile, for ejs wKene ver cortinue
Suaieh golemert ecdar ed and excule
wkenever kneok is |the nex JJeration
decdared
Bneok soiemen ConMinue slalemenl
.Bondesumes ike condralesumes he conlaa
Jhe noqram t e pnognam Ao he
e

hc erd oo and ne teration s ha


l o

made ecuhonal lo doo enclosing condinue


Duksicde hat Joap. ond made exeuliona
low anside he
Soo
0gain.
Ukage
As mentiomed hreak dn alher hand ronlinv
is used for the auses ealy encculibn
erriralion o the nerf teralion f he
encdasing loop. enclasing leap.
Aeakstatemend We can' use conlinue
Can be used ard |atemenl uih guwilk,
bnpatiahle with Jabel if s nas
tewihef, label. ontfalisle ith hem

Exconplke e Continue vs Break

JariaTester. Jav
bxample af Conlinue vs Bneak.
Javalecler.jpa
eplic lass JaaTester
hahle stalicvoid main (etug avgs[)1
/Tlloctoalion break sfatmen lexeation apr uhen
salue o becomeso4)
System. oud. puintln (" Bneak saermet \n )3
tor (int J=1 ; it=si j++){
iF=4) hneaki
Systerm. euttpuintln li);

t/ TlMasralirg conlinue sufemenl(aculion


skatpped when nlue of i becomes fo 1.)
Sytem. out. puintln("ontineue sthement\n") i

f (i=1) e.onlintue
System out. pnintkn td);

Pd: &neak Stadement Continue StalemenU


1,2,3 4, S, 6

You might also like