Basics Flashcards
1
Q
You can declare multiple variables by
A
int x=1 , y=2, z =3;
2
Q
You can assign the same value to multiple variables like
A
int x, y, z;
x, y, z = 50;
3
Q
What are identifiers
A
These are variable names
4
Q
The byte data type stores
A
Whole numbers from -128 to 127
5
Q
The short data type stores
A
Whole numbers from -32,768 to 32,767
6
Q
The double data type stores
A
Fractional numbers. It’s sufficient for storing 15 decimal digits
7
Q
Wrapper classes include
A
Byte byte, Short short, Integer int, Long long, Float float, Double double, Boolean boolean, Character char
8
Q
To get the value of a wrapper object, you can simply append the primitive type declaration with
A
Value() eg intValue()