423,516 Members | 2,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,516 IT Pros & Developers. It's quick & easy.

why are we storing object references varibles on stack data structure

P: 6
why are we storing object references varibles on stack data structure
why not any other data structure
please let me know about this
Apr 1 '08 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
why are we storing object references varibles on stack data structure
why not any other data structure
please let me know about this
References to objects have a known size. The objects themselves are stored on the heap.
Read this article from Javaworld which explains the various memory locations and what they are used for.
Apr 1 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.