Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the difference Java Heap Memory vs Stack Memory ? How we can set memory area for both of them?

user-image
Question added by Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date Posted: 2014/09/22

the main difference between java stack memory and heap memory is ,in stack memory is used to store local variables and function call .

while heap memory is used to store object in java,where object is created as member variables,class variables ,they are always created inside heap space in java 

More Questions Like This