What is the default value of an object reference declared as an instance variable?
Answers
Answered by
0
Visibility is similar to instance variables. However, most static variables are declared public since they must be available for users of the class. Default values are same as instance variables. For numbers, the default value is 0; for Booleans, it is false; and for object references, it is null.
Similar questions
Computer Science,
6 months ago
Math,
6 months ago
Math,
6 months ago
India Languages,
11 months ago
Physics,
1 year ago
Math,
1 year ago