File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Instance and Reference variables
Vallabhaneni Suresh Kumar
Joined: Mar 01, 2004
Aug 05, 2005 04:03:00
What is the difference between instance variable and reference variable?
author and iconoclast
Joined: Jul 08, 2003
Aug 05, 2005 04:52:00
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]
I agree. Here's the link:
subject: Instance and Reference variables
regard on k&b book
doubt in has-a relationship
Overridding Pls Explain this code
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015