This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Java and Heap ADT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Java and Heap ADT" Watch "Java and Heap ADT" New topic
Author

Java and Heap ADT

Ann Basso
Ranch Hand

Joined: Jul 26, 2007
Posts: 48
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 java heap is? Basically, I want to understand how is an object stored in "heap".

Any ideas?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14952
    
  26

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 free store) 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
     
    I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
     
    subject: Java and Heap ADT
     
    It's not a secret anymore!