File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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