Monday, 22 July 2013

Data types in java


  Primitive Data type in JAVA

   Primitive data type can divided into three main categories:                                  
  •     Integral  Types à used for signed integer  (byte short,int ,long) and unsigned character values(char).
  •         Floating point Types à used for fractional signed numbers(float,double).
  •          Boolean Type à used for logical values.




Data type
With(bits)
Minimum& Maximum value
Wrapper Class
boolean
Not applicable
True, false
Boolean
byte
8
-27,   27-1
Byte
short
16
-215  ,215-1
Short
char
16
0x0,0xfff
Character
int
32
-231,231-1
Integer
long
64
-263,263-1
Long
float
32
+-1.4012986432481707e-45f
+-3.402823476638528860+38f
Float
double
64
+-4.9065645841246544-324
+-1.79769313486231570e+308
Double

Related Posts:

  • Top wesbites to learn Java Wish to create your software games and web applications .Here i suggest some resource for you. Now you habe to practice the things which you read theoretically. It will help to sharp your skills .Apart from us LANG-ADDA the… Read More
  • JAVA : Collections                     Collections And Framework                           … Read More
  • History of JAVA Java is a general-purpose, concurrent, class-based, object-oriented computer programming language that is specifically designed to have as few implementation dependencies as  &nbs… Read More
  • Installing JAVA AND Setting CLASS PATH  Installing JAVA AND Setting CLASS PATH        Install jdk 7.4(latest version) or any  other lower                    version.   &… Read More
  • Class in JAVA BASIC All the objects that have similar properties and similar behavior are grouped together to form a class. Class is the java way to implement encapsulation.A class is a user defined data type and objects are the ins… Read More

0 comments:

Post a Comment