The only valid literals of boolean type are true and false. : boolean « Java Source And Data Type « SCJP

Home
SCJP
1.Java Source And Data Type
2.Operators
3.Modifiers
4.Type Casting
5.Statements
6.Object Oriented
7.Thread
8.Utility Classes
9.File
SCJP » Java Source And Data Type » boolean 
1.12.2.The only valid literals of boolean type are true and false.
public class MainClass {
  public static void main(String[] argv) {
    boolean isTrue = true;
    boolean isFlase = false;

    System.out.println(isTrue);
  }
}
1.12.boolean
1.12.1.Boolean literals are the source code representation for boolean values.
1.12.2.The only valid literals of boolean type are true and false.
1.12.3.The default value of a boolean is false.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.