Java integer primitives are always signed except for the char primitive type. : Primitive Data Types « 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 » Primitive Data Types 
1.8.4.Java integer primitives are always signed except for the char primitive type.
public class MainClass {
  public static void main(String[] argv) {
    int i = -1;
    int j = 9;

    System.out.println(i);
    System.out.println(j);
  }
}
-1
9
1.8.Primitive Data Types
1.8.1.Primitive Data Types are simple non-object data types.
1.8.2.You can declare one or more primitives, of the same primitive type, in a single line.
1.8.3.Ranges(Effective Sizes) of Numeric Primitives. The positive range is one less than the negative range.
1.8.4.Java integer primitives are always signed except for the char primitive type.
1.8.5.Automatic Initialization/Default Values for Primitive Types
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.