Originally posted by tomendra singh: sorry i should say simply a variable.i mean when we declare any variable as we declare in general case like:- int a;
The difference between an instance variable and a "local" variable, is merely the scope. As long as the variable is in scope, there should be no difference in how they are used.
thank you wong, but can you tell me please scope of both type of variables and how they are declared differently so that i can easily recognize that which one is instance variable and which one is instance variable.
(please explain with an example.)
Strength Is Life,Weakness Is Death- Swamy Vivekanand.
SCJP 5.0(87%)