Home Help Java V while Java Keyword

Related Tutorials


 
 

Share on Google+Share on Google+

while Java Keyword

Advertisement
The while is a keyword defined in the java programming language.

while Java Keyword

     

The 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.

Example to use the while keyword in a class:

public class Cla{
while (expression_evaluates_to_true){

<statements>
  
}
}

 

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



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: December 1, 2009

Related Tutorials

Discuss: while Java Keyword  

Post your Comment


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