Primitive Data Types are simple non-object data types. : Primitive Data Types « Java Source And Data Type « SCJP






Java's primitive data types are

 boolean
 char
 byte
 short
 int
 long
 float
 double


Number types (both integer and floating point types) are all signed.

For integer types the sequence from small to big is byte, short, int, long.
doubles are bigger than floats.
boolean can be only true or false. 
The char type contains a single, 16-bit Unicode character. 

 
 
public class MainClass{
    public static void main(String[] argv){
        byte b;
        short s;
        int i;
        long l;
        float f;
        double d;
        char c;
        boolean bool;
    }
}








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