There are mainly two type of datatype:
- Primitive
- Non-primitive
Primitive:
              They are of two types: 
-   Numeric 
-   Non-numeric       
now,
                Numeric :
                   They are of two types:
- Numeric
- Non-numeric
- Integer
- Floating point
- Integer
- Floating point
              Non-numeric:
            
                They are of two types:
- Character
- Boolean 
- Character
- Boolean
Non-primitive:
        They are of three types:
- Class
- Array
- Interface
explanation
                   INTEGER -Integer are whole number
byte                1 byte                 0                                               -128 to 127                                             
short               2 byte                 0                                             -32768 to 32767                                       
int                  4 byte                  0                                     -2147483648 to 2147483647                           
long                8 byte                 0                      -9223372036854775808 to 9223372036854775807      
                  FLOATING POINT-A number containing fractional part
Data type Size          Default                  Range                          
float                4 byte           0.0                      3.40282347 x 1038, 1.40239846 x 10-45            
double             8 byte           0.0    1.7976931348623157 x 10308, 4.9406564584124654 x 10-32
 
              
                    CHARACTER-A single character that is a letter ,a digit,a                                        punctuation mark,a tab,a space and some thing similar to it.                
Data type Size                   Default                  Range                 
char                2 byte                  \u0000                                 \u0000  to \uFFFF               
              
BOOLEAN-Boolean are logical variable which can contain either TRUE/FALSE  
  Data type             Value                                  Default                                  
        char                           TRUE(1)/FALSE(0)                             FALSE                        
Data type Size          Default                  Range                          
float                4 byte           0.0                      3.40282347 x 1038, 1.40239846 x 10-45            
double             8 byte           0.0    1.7976931348623157 x 10308, 4.9406564584124654 x 10-32
                    CHARACTER-A single character that is a letter ,a digit,a                                        punctuation mark,a tab,a space and some thing similar to it.                
Data type Size                   Default                  Range                 
char                2 byte                  \u0000                                 \u0000  to \uFFFF               
BOOLEAN-Boolean are logical variable which can contain either TRUE/FALSE  
  Data type             Value                                  Default                                  
        char                           TRUE(1)/FALSE(0)                             FALSE                        
