Re: how java variables are stored?
- From: Roedy Green <look-on@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 14 Aug 2005 05:49:11 GMT
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.
.
- Follow-Ups:
- Re: how java variables are stored?
- From: Chris Head
- Re: how java variables are stored?
- References:
- how java variables are stored?
- From: rahul8143
- Re: how java variables are stored?
- From: Roedy Green
- how java variables are stored?
- Prev by Date: Re: SMS by mobile phone
- Next by Date: Re: More anti-aliasing puzzles
- Previous by thread: Re: how java variables are stored?
- Next by thread: Re: how java variables are stored?
- Index(es):
Relevant Pages
|