Types of Variables
u
Boolean
Ø
2 values in Java
§
true
and
false
u
Character
Ø
Single byte
Ø
Can be numeric or character
Ø
Different from a PL/SQL
CHAR
u
String
Ø
Defines an object
Ø
Used to declare string variables
Ø
Implemented in Java as an
object
u
StringBuffer
Ø
Sister class to string
Ø
Used for character sequences
that can change size and/or be
modified
u
Numeric
Ø
For whole numbers
§
long, int, short,
byte
Ø
For fractions
§
float, double
Java basics