Home Help Java W The While keyword
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

The While keyword

Advertisement
While is a keyword defined in the java programming language.

The While keyword

     

While is a keyword defined in the java programming language. Keywords are basically reserved words which have specific meaning relevant to a compiler in java programming language likewise the while keyword indicates the following :

  • The while keyword in java programming language specifies a loop 
  • The loop represented by the while keyword repeats as long as a condition is true.

Syntex:  Here is the syntax that must be followed by the developer while using the keyword while.

public class Myclass {

while (expression_evaluates_to_true) {

<statements>

}

}

Advertisement

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 18, 2009

Ask Questions?    Discuss: The While keyword  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com