Specifications
Sun Services
Java™ Programming Language
Module 3, slide 12 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Logical – boolean
The boolean primitive has the following characteristics:
• The boolean data type has two literals, true and
false.
• For example, the statement:
boolean truth = true;
declares the variable truth as boolean type and
assigns it a value of true.










