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.
2
Q
What is the default value of an instance variable of type String?
A
null
3
Q
What is the default value of an instance variable of type boolean?
A
false