| Author |
Instance and Reference variables
|
Vallabhaneni Suresh Kumar
Ranch Hand
Joined: Mar 01, 2004
Posts: 68
|
|
What is the difference between instance variable and reference variable? Thank you
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24081
|
|
They're overlapping things -- you can't divide all variables into one or the other category. Instance variables are non-static members variables of a class. Reference variables are non-primitive variables -- i.e., all variables of class or interface type.
|
[Jess in Action][AskingGoodQuestions]
|
 |
 |
|
|
subject: Instance and Reference variables
|
|
|