true Java Keyword

The true is a keyword defined in the java programming language.

true Java Keyword

     

The true 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 true keyword indicates the following :

-- The true keyword in java programming language indicates one of the two defined values for a boolean variable (which may be 0 or 1).

Example to use the true keyword in a class:

public class Class{

boolean is = true;

}

Advertisements

Share on Google+Share on Google+

true Java Keyword

Posted on: November 18, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: true Java Keyword  

Post your Comment


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

Ads

 

Ads