0% found this document useful (0 votes)
6 views2 pages

Loops

Uploaded by

Sumedh Chaware
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Loops

Uploaded by

Sumedh Chaware
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Looping statement are the statements execute one or more statements repeatedly several

number of times. In Java programming language there are three types of loops we have; for,

while and do-while.

Why we use loops in Java Programming?

When we need to execute a block of code several number of times then we need to use

looping concept in Java.

Advantage with looping statement

1. Reduce length of Code

2. Take less memory space.

3. Burden on the developer is reducing.

4. Time consuming process to execute the program is reduced.


Types of Loops:

There are three type of Loops available in 'Java' programming language.

for loop

while loop

do-while

Difference between conditional and looping statement: Conditional statement executes


only once in the program where as looping statements executes repeatedly several number of
times.

You might also like