• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java and Heap ADT

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
     
    reply
      Bookmark Topic Watch Topic
    • New Topic