File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is Stack memory & heap memory" Watch "What is Stack memory & heap memory" New topic

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:
subject: What is Stack memory & heap memory