Tuesday, January 23, 2007

what are Local Variables ?

Variables declared within a method. That means the variable is not just initialized within the method, but also declared within the method. As local variables starts its life inside the method, it's also destroyed when the method has completed. Local variables are always on stack and not on heap.


SOURCE : www.referjava.com

No comments: