Hi,
"thomson" <sa**********@yahoo.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Hi Greg,
if i have an instance variable inside the static
method, will it be a static variable?
I think you are confusing the terms "instance variable" and "local
variable".
Instance variable has an instance scope, all the methods of the instance
can access it, it's created once when the instance is created and is
destroyed when the instance is GC-ed. It's stored in the same memory than
the instance itself.
A local variable is declared inside a method, it's ALWAYS created in the
stack and is create EACH TIME the method is executed. it's destroyed when
the method finish. It's not accesible from another method and do not persist
between method invocations.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation