This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes What is Stack memory & heap memory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is Stack memory & heap memory" Watch "What is Stack memory & heap memory" New topic
Author

What is Stack memory & heap memory

Vishnu Sharma
Ranch Hand

Joined: Feb 03, 2010
Posts: 55
What is Stack memory & Heap memory??
Is there any relation like: Stack memory only saves Stack variable?? If yes then what is the purpose of Heap memory then??
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
A quick search on google --> What is difference between heap memory and stack memory

In short: Local variables live on the stack, objects live on the heap.


JDBCSupport - An easy to use, light-weight JDBC framework -
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is Stack memory & heap memory
 
Similar Threads
JVM memory management
heap-stack
Constructer variables
stack and heap?
When will a variable use memory from stack and when will use memory from heap?