Wed Dec 03, 2008 2:31 am
There is two types in java programming language .The First is primitive and the second is object reference.
I will explain here the primitive data types :
Data Type : boolean
Size in Byte : 1 byte
Size in Bits : 8bits
Values: True or False
Wrapper: java.lang.Boolean
Data Type : byte
Size in Byte : 1byte
Size in Bits : 8bits
Values: signed integer
Wrapper:java.lang.Byte
Data Type :char
Size in Byte : 2bytes
Size in Bits : 16bits
Values: unicode character
Wrapper: java.lang.Character
Data Type : integer
Size in Byte : 4bytes
Size in Bits : 32bits
Values: signed /unsigned integer
Wrapper:java.lang.Integer
Data Type : short
Size in Byte : 2bytes
Size in Bits : 16bits
Values: signed/unsigned integer
Wrapper: java.lang.Short
Data Type : long
Size in Byte : 8bytes
Size in Bits : 64bits
Values: signed /unsigned integer
Wrapper: java.lang.Long
Data Type : float
Size in Byte : 4bytes
Size in Bits : 32bits
Values: Real number /Floating point
Wrapper:java.lang.Float
Data Type : double
Size in Byte : 8bytes
Size in Bits : 64bits
Values: Real number /Floating point
Wrapper:java.lang.Double
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.