on 07-20-2007 5:53 AM
What is heap memory?
hi Ravi,
In Java,
the JVM's(Java virtual Machine) heap stores all objects created by an executing Java program. Memory for new objects is allocated on the heap at run time.
Try the link below for more info.
Cheers.......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravichandran ,
Heap is a central memory segment that can be used for various reasons. It depends from the language that you are using.
In C, for example, you can use function that permits you to allocate part of memory inside the heap:
void* malloc(size_t n)... to allocate
In this case the programmer is responsible to manage this memory manually
void free(void*)... to deallocate
In others languages as Java, the Heap memory is used to allocate the object instances thanks to the Java Virtual Machine. So, in Java programmers can not manage the Heap manually, the object instances are deallocated automatically from the Garbage Collector.
If you need more deeply informations, please, let me know.
Hoper this help you.
Vito.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.