true Java Keyword

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

true Java Keyword

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;

}