What will be the initial value of an object reference which is defined as an instance variable? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 5

What will be the initial value of an object reference which is defined as an instance variable?

10th Dec 2016, 2:47 PM
Jaydeep Khatri
Jaydeep Khatri - avatar
2 ответов
+ 2
If you don't instantiate the object reference it will be null as it is not pointing to anything... I don't know if that's what you are looking for ?
10th Dec 2016, 2:59 PM
Matthew
Matthew - avatar
0
it will be null
10th Dec 2016, 5:02 PM
Ahmed Gamal
Ahmed Gamal - avatar