What is
a memory leak?
Memory leak is that when memory
is allocated but its not released because of an application consume memory
reducing the available memory for other applications and causing the system to
page virtual memory to the hard drive showing the application or crashing the
application. When the computer memory resource limits are reached.
Explain about storage of union
elements.
The key point about storage of
union elements is that Union elements are use to share common memory space.
What is
the difference between the Heap and the Stack?
The main difference b/n the
Heap and the Stack are given below:
- In stack we create object
temporary where programmer used to reserve allocation.'
- stack not have automatic garbage collection where as heap have automatic garbage collection.
- stack not have automatic garbage collection where as heap have automatic garbage collection.
No comments:
Post a Comment