Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Help Java B The boolean Keyword

Related Tutorials


 
 

Share on Google+Share on Google+

The boolean Keyword

Advertisement
The boolean Keyword in java avails one of the two values that are true and false.

The boolean Keyword

     

The boolean Keyword in java avails one of the two values that are true and false.

Java have the boolean type so literal values true and false. 

The boolean is a Java primitive type. 

The default value for boolean field is false.

Syntact: 

boolean valid = true;
if (valid)
{
<statement>
}

 

 

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: October 14, 2010

Related Tutorials

Discuss: The boolean Keyword  

Post your Comment


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