DataType is used to represent the data which we store in the memory in the form of variables.
In Java we have 2 major types of datatypes.
-- Primitive Datatypes
-- Non-Primitive Datatypes
Data Types
1) Primitive Data Types
-- Numeric
----------Integer
-----------byte
-----------short
-----------int
-----------long
----------Decimal
-----------float
-----------double
--Non-Numeric
-----------char
-----------boolean
2) Non-Primitive Data Types
--Derived Data Type
-----------String
-----------Array, etc.
--User-Defined Data Type
-----------class
-----------interface
-----------enum, etc.
No comments:
Post a Comment