2
3
4
5
long
int
short
byte
6
7
Name Width in Bits Range
Char 16 0 to 65,535
8
Name Width in Bits Range
boolean 1(Not Fixed) true or false
boolean: The boolean data type has only two
possible values: true and false. Use this data type
for simple flags that track true/false conditions.
This data type represents one bit of information,
but its "size" isn't something that's precisely
defined.
9
10
11
12
13
 Java™ : The Complete Reference,
Seventh Edition
- Herbert Schildt
 Java™ : The Complete Reference,
Seventh Edition
- Herbert Schildt

Unit2.data type, operators, control structures

  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
    7 Name Width inBits Range Char 16 0 to 65,535
  • 8.
    8 Name Width inBits Range boolean 1(Not Fixed) true or false boolean: The boolean data type has only two possible values: true and false. Use this data type for simple flags that track true/false conditions. This data type represents one bit of information, but its "size" isn't something that's precisely defined.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
     Java™ :The Complete Reference, Seventh Edition - Herbert Schildt
  • 15.
     Java™ :The Complete Reference, Seventh Edition - Herbert Schildt

Editor's Notes

  • #3 Topics  from Sau Uni M.Sc.-II Syllabus.
  • #9 http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html