A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Java and Heap ADT
Joined: Jul 26, 2007
Aug 07, 2007 05:38:00
Usually we say that when we create an object, it is actually created in <b>the</b> heap.
Now, I understand the standard Heap ADT but I am not sure about what the
heap is? Basically, I want to understand how is an object stored in "heap".
Jesper de Jong
Joined: Aug 16, 2005
Aug 07, 2007 07:33:00
The heap is just an area of memory in the computer's RAM. It doesn't have anything to do with "heap" as a data structure. If you look at the
Wikipedia page for 'Heap'
you'll see that it has two different meanings:
heap (data structure)
, a tree-like data structure
The heap (or
) is the area of memory used for
dynamic memory allocation
So, the same word, two different meanings.
[ August 07, 2007: Message edited by: Jesper Young ]
Java Beginners FAQ
JavaRanch SCJP FAQ
The Java Tutorial
Java SE 8 API documentation
subject: Java and Heap ADT
BEA 10 Admin server out of memory issue
user defined data type
Java BufferedImage - OutOfMemoryError
ADT? What is it??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015