Total members 10261 | Gratitudes |It is currently Wed May 23, 2012 8:55 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 1 post ] 
Author Question
 Question subject: java data types
PostPosted: Wed Dec 03, 2008 2:31 am 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2279
Location: Earth
Has thanked: 39 time
Have thanks: 61 time

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 :

1 )
Data Type : boolean
Size in Byte : 1 byte
Size in Bits : 8bits
Values: True or False
Wrapper: java.lang.Boolean

2 )
Data Type : byte
Size in Byte : 1byte
Size in Bits : 8bits
Values: signed integer
Wrapper:java.lang.Byte

3 )
Data Type :char
Size in Byte : 2bytes
Size in Bits : 16bits
Values: unicode character
Wrapper: java.lang.Character

4 )
Data Type : integer
Size in Byte : 4bytes
Size in Bits : 32bits
Values: signed /unsigned integer
Wrapper:java.lang.Integer


5)
Data Type : short
Size in Byte : 2bytes
Size in Bits : 16bits
Values: signed/unsigned integer
Wrapper: java.lang.Short

6)
Data Type : long
Size in Byte : 8bytes
Size in Bits : 64bits
Values: signed /unsigned integer
Wrapper: java.lang.Long

7)
Data Type : float
Size in Byte : 4bytes
Size in Bits : 32bits
Values: Real number /Floating point
Wrapper:java.lang.Float

8 )
Data Type : double
Size in Byte : 8bytes
Size in Bits : 64bits
Values: Real number /Floating point
Wrapper:java.lang.Double

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 1 post ] 
Quick reply


  

 Similar topics
 video chat application in java
 navigating to database using java
 java mobile apps
 need help in java
 Read your gmail using Java code
 Java Programing to communicating port parallel
 Java Chat
 Steganography in java
 java code for listing folder contents from remote folder
 java

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 3 guests



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team