Boolean Literals in Java Programming

Boolean Literals in Java Programming

Previous Home Next

 

The boolean type has two values, represented by literals 'true' and 'false'.

     true represents a true boolean value
     false represents a false boolean value


 


 
public class Class {

public static void main(String[] args) {
boolean Sign = true;

System.out.println(Sign);
}

}


Previous Home Next