Javatpoint Logo

what is the differenec between heap memory and stack memory and static memory...

By: luckym*** On: Wed Feb 20 09:22:35 IST 2013     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
memoryUp0Down

 
a heap is a specialized tree-based data structure that satisfies the heap property: if B is a child node of A, then key(A) ≥ key(B). This implies that an element with the greatest key is always in the root node, This is why heaps are used to implement priority queues. The efficiency of heap operations is crucial in several graph algorithms.

a stack is an abstract data type and data structure based on the principle of Last In First Out.For example, a modern PC uses stacks at the architecture level, which are used in the basic design of an operating system for interrupt handling and operating system function calls. Among other uses, stacks are used to run a Java Virtual Machine, and the Java language itself has a class called "Stack", which can be used by the programmer.

Static random access memory (SRAM) is a type of semiconductor memory where the word static indicates that, unlike dynamic RAM (DRAM), it does not need to be periodically refreshed, as SRAM uses bistable latching circuitry to store each bit.but is still volatile in the conventional sense that data is lost when the memory is not powered.
Image Created0Down

By: [email protected] On: Thu Feb 21 13:53:54 IST 2013 Question Reputation0 Answer Reputation147 Belt Series Points0 147User Image
Are You Satisfied :0Yes1No