Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

java data types

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



Post a reply
  Related Posts  to : java data types
 Data Abstraction and RMI in java     -  
 data access layer for java     -  
 Data Export from java To Excel     -  
 Des java Applet ( Data Encryption Standards )     -  
 data leakage detection coding in java     -  
 LZW data compression-decompression algorithm java code     -  
 Arithmetic data comparison and decompression java code     -  
 Types of Pointers in C++     -  
 Types of Registers     -  
 assembler directives types     -  

Topic Tags

Java Basics