[3839] in java-interest

home help back first fref pref prev next nref lref last post

Re: Where does the allocation happen.

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Wed Nov 29 17:57:47 1995

Date: Wed, 29 Nov 1995 10:32:15 -0800
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: pbadri@cisco.com
Cc: java-interest@java.Eng.Sun.COM


Hi Pradeep,

> When i allocate memory for an object/array, where does it happen.
> in the heap or in the stack.

Allocation always happens on the heap. There is no way to allocate
stack space other than the local variables themselves. The reasoning
behind this is that eventually garbage collectors will be just as
efficient.

Have fun,

	Arthur van Hoff
 
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post