Java Language Literals Boolean literals

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9

Example

Boolean literals are the simplest of the literals in the Java programming language. The two possible boolean values are represented by the literals true and false. These are case-sensitive. For example:

boolean flag = true;    // using the 'true' literal
flag = false;           // using the 'false' literal


Got any Java Language Question?