Home Help Java B The boolean Keyword



The boolean Keyword
Posted on: October 14, 2010 at 12:00 AM
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>
}

 

 

Related Tags for The boolean Keyword:


More Tutorials from this section

Ask Questions?    Discuss: The boolean 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.