Posts

Showing posts with the label Range of Java Data types

Data type's in java language

Java is strongly typed language. Primitive Data Types:    Java has eight primitive Data types but can be put in four groups.  Integer Floating-point Characters Boolean Integer: Java has four integer types  byte  short  int  long       All types are signed, positive and negative values. Name Width Range byte  8bits  128 to 127  short  16bits  –32,768 to 32,76   int  32bits  –2,147,483,648 to 2,147,483,647  l ong  64bits  –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 Floating-point: Java has  two floating-point types Double  float   Name  width   Approx. Range  float  32bits 1.4e–045 to 3.4e+038   double  64bits  4.9e–324 to 1.8e+308 ...