Differences between while and do–while loops

While Loop:

It is a looping construct that will execute only it the test condition is true.

It is an entry-controlled loop.

It is used for implementing common looping situations.

do-while Loop:

It is a looping construct that will execute at least once even if test-condition is false.

It is an exist controlled loop.

It is used for implementing basic proms where the mere is required to be printed after once.

Related

Explain Java Environment?

Java environment includes a large number of development tools are part of the system known as Java development kit is the classes is methods are part of the Java sta...

Explain Java Command Line Arguments?

The way of providing input at the time of exection is known as command line arguments. Command line arguments are parameters that are supplied to the application program at...

Explain Java Tokens?

A Java program is basically a collection of classes. A class is defined by a set of declaration statements and methods containing executable statements. ...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item