Basics Flashcards

1
Q

You can declare multiple variables by

A

int x=1 , y=2, z =3;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

You can assign the same value to multiple variables like

A

int x, y, z;

x, y, z = 50;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are identifiers

A

These are variable names

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The byte data type stores

A

Whole numbers from -128 to 127

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The short data type stores

A

Whole numbers from -32,768 to 32,767

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The double data type stores

A

Fractional numbers. It’s sufficient for storing 15 decimal digits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Wrapper classes include

A

Byte byte, Short short, Integer int, Long long, Float float, Double double, Boolean boolean, Character char

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

To get the value of a wrapper object, you can simply append the primitive type declaration with

A

Value() eg intValue()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly