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>
}

 

 

Advertisements

Posted on: October 14, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

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.

Discuss: The boolean Keyword  

Post your Comment


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