Sunday, February 3, 2008

JAVA Data Types

There are 8 primitive Data Types in java.
# Data_Type Size Range
1. byte 8-bit 0 to 127

2. short 16-bit -32,768 to +32,767

3. int 32-bit -2,147,483,648 to +2,147,483,647

4. long 64-bit -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807

5. float 32-bit beyond the scope (click here for more information)

6. double 64-bit beyond the scope (click here for more information)

7. boolean Either true true and false
or false

8. char 16-bit '\u0000' (or 0) to '\uffff' (or 65,535).


For more information click here.