heap and stack memory

Ads
 

heap and stack memory

hi i am jane pls explain the difference between heap memory and stack memory

View Answers

July 14, 2011 at 12:56 PM

STACK memory is referred as temporary memory,if you come out of the program the memory of the variable will not no more there.[eg., int a; memory for a will not maintained after v came out from the program]. While HEAP memory is referred as permanent memory,memory allocated for the object will be maintained even if we came out of the program.[eg.memory for OBJECT will remains there ever].


June 9, 2012 at 10:27 PM

hello friend where the object of the heap is saved for ex in hdd


June 9, 2012 at 10:27 PM

hello friend where the object of the heap is saved for ex in hdd

Ads









Related Tutorials/Questions & Answers:
heap and stack memory
heap and stack memory   hi i am jane pls explain the difference between heap memory and stack memory with example programs
heap and stack memory
heap and stack memory   hi i am jane pls explain the difference between heap memory and stack memory   STACK memory... after v came out from the program]. While HEAP memory is referred as permanent
Advertisements
heap memory
heap memory  how long is the object stored in heap memory persist
How to set heap memory in cassandra on docker
How to set heap memory in cassandra on docker  I am trying to run cassandra on docker and its throwing error asking to set the heap memory..._SIZE=2048M How to set the heap memory in cassandra on docker? Thanks  
Controlling Java Heap Size Memory Allocation
Controlling Java Heap Size Memory Allocation  Hi, Tell me about Controlling Java Heap Size Memory Allocation? I have to run java program from console and allocate 2GB of RAM to Java Heap Size. Thanks   Hi, You can
Memory
Memory   what is the different between heap memory and stack memory ? please explain with example
elasticsearch java heap space out of memory
elasticsearch java heap space out of memory  Hi, How to set heap size in elasticsearch to overcome java heap space out of memory? Thanks   Hi, Set following value in environment variables: export ES_HEAP_SIZE=10g
memory
memory   hi i am jane pls explain the difference between heap memory and stack memory
memory layout
memory layout  how much space does each segement(data,stack,heap,static) holds in memory? memory here refers to ram or hard disk
memory management
memory management  Why objects store in heap
Stack
Stack  How to implement a stack using classes in java?   Here is an example that implements a Stack class based on arrays. public class Stack { private int top; private int[] storage; Stack(int
Java heap space
; set java thread stack size For example, you can set minimum heap to 64...Java heap space  I am using MyEclipse 8.6 for my web based project. The command may be... Ex: java -Xms32m -Xmx128m How can I increase java heap
Java Heap
Java Heap       The JVM's heap stores all the objects generating by a running Java program. Java uses the new operator to create objects and memory for new objects is allocated
ModuleNotFoundError: No module named 'heap'
ModuleNotFoundError: No module named 'heap'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'heap' How to remove the ModuleNotFoundError: No module named 'heap' error
visualization Max-Heap-sort
visualization Max-Heap-sort  To Whom It May Concern, Would you please give the source code of applet Max-heap sort? I want to see the visualization of Max-Heap sort. Best Regards, saeideh
Stack Overflow - Java Tutorials
Stack Overflow in Java A stack is the part of the memory. The local automatic variable is created on this stack and method arguments are passed. When a process starts, it get a default stack size which is fixed for each process. 
memory management
memory management  memory management in java
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space  Hi, In one of my..." java.lang.OutOfMemoryError: Java heap space How to resolve this issue? Thanks   Hi... your program. Check the thread Java heap space and java.lang.OutOfMemoryError
stack in java/
stack in java/  java code for stack push pop and display operation? thanks
ModuleNotFoundError: No module named 'binary-heap'
ModuleNotFoundError: No module named 'binary-heap'  Hi, My Python... 'binary-heap' How to remove the ModuleNotFoundError: No module named 'binary-heap' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'django-heap'
ModuleNotFoundError: No module named 'django-heap'  Hi, My Python... 'django-heap' How to remove the ModuleNotFoundError: No module named 'django-heap' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'tap-heap'
ModuleNotFoundError: No module named 'tap-heap'  Hi, My Python...-heap' How to remove the ModuleNotFoundError: No module named 'tap-heap... to install padas library. You can install tap-heap python with following
ModuleNotFoundError: No module named 'd-heap'
ModuleNotFoundError: No module named 'd-heap'  Hi, My Python...-heap' How to remove the ModuleNotFoundError: No module named 'd-heap'... to install padas library. You can install d-heap python with following command
ModuleNotFoundError: No module named 'tap-heap'
ModuleNotFoundError: No module named 'tap-heap'  Hi, My Python...-heap' How to remove the ModuleNotFoundError: No module named 'tap-heap... to install padas library. You can install tap-heap python with following
memory allocation
memory allocation  If we assign memory malloc(5) and access more than the assigned memory then what will happen? 1.segmentation error 2.memory leak 3.program will not compile 4.Your view
heap sort in java
heap sort in java  plz modify this program so that it can take input as integers and string both..... public class heap_Sort{ public static void...("\n Heap Sort\n---------------\n"); System.out.println("\n Unsorted Array\n\n
Array stack
Array stack  Write a stack class ArrayStack.java implements PureStack interface that reads in strings from standard input and prints them in reverse order
Array stack
Array stack  Write a stack class ArrayStack.java implements PureStack interface that reads in strings from standard input and prints them in reverse order
Memory Allocation
Memory Allocation  What Is The Order Of Execution Of Statement 1) Statement Enclosed in {}. 2) Static 3) Public Static Void Main()   When jvm loads a class, static block is executed first, then main method. And at last
Java memory leak
Java memory leak  What is memory leak
What is a stack overflow error?
What is a stack overflow error?  What is a stack overflow error

Ads