Re: how java variables are stored?



On Sun, 14 Aug 2005 02:51:34 GMT, Roedy Green
<look-on@xxxxxxxxxxxxxxxxxxxx> wrote or quoted :

>3. local -- one slot per method.
>
>local variables exist only while a method is executing, then they are
>immediately thrown away. Static and instance variables are garbage
>collected at leisure.

to be more precise, locals are one slot per method per thread. If you
have two threads executing the same the method, there will be two
copies of its local variables.
.



Relevant Pages

  • Re: how java variables are stored?
    ... > local variables exist only while a method is executing, ... Static and instance variables are garbage ... What's this about locals being immediately thrown away? ...
    (comp.lang.java.programmer)
  • Re: variables in workspace
    ... finished executing, its workspace is cleared. ... the function has finished computing but before the function has finished ... Are you trying to examine the local variables to debug your code? ... MATLAB documentation. ...
    (comp.soft-sys.matlab)
  • Re: whats a callback?
    ... "Static" referes to local variables that retain their values between ... Static linking of a function (declared in a class ... declaration) means that all instances of that class use the same ... executing concurrently. ...
    (comp.arch.embedded)
  • Re: whats a callback?
    ... "Static" referes to local variables that retain their values between ... Static linking of a function (declared in a class ... declaration) means that all instances of that class use the same ... executing concurrently. ...
    (sci.electronics.design)
  • Re: Wait for an event
    ... "casey" schrieb ... until the user clicks the button, then continue executing the rest ... You will have to use the click event handler. ... Make the local variables available to the whole class. ...
    (microsoft.public.dotnet.languages.vb)