OCA Chapter 1 Review Questions Flashcards

1
Q

Is the word “true” a Java reserved word?

A

Yes.

‘True’ is Java reserved word. For that reason it is NOT a valid Java identifier.

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

What is the default value of an instance variable of type String?

A

null

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

What is the default value of an instance variable of type boolean?

A

false

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