Total members 11890 |It is currently Sat Apr 20, 2024 7:28 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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



_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  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 Registers     -  
 Types of Pointers in C++     -  
 assembler directives types     -  



Topic Tags

Java Basics
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
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