Home Help Java V while Java Keyword



while Java Keyword
Posted on: December 1, 2009 at 12:00 AM
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>
  
}
}

 

Related Tags for while Java Keyword:


More Tutorials from this section

Ask Questions?    Discuss: while Java Keyword  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.