01 - Java Review v2
01 - Java Review v2
●
DASTRAP Term 2, SY 2009 -
2010
Variables
• Primitive Data types
▫ byte -128 -> 127
▫ short -32,768 -> -32,767
▫ int -2,147,483,648 -> 2,147,483,647
▫ long -9,223,372,036,854,775,808 ->
9,223,372,036,854,775,807
▫ float single-precision 32-bit IEEE 754 floating
point
▫ double double-precision 64-bit IEEE 754 floating
point
▫ boolean true or false
▫ char ex. ‘a’
Variables
• String – not a primitive data type! But java has
special support