Why is the heap (as in where we put objects) called that?
Possible Duplicate:
What is the origin of the term “heap” for the free store?
Why is the heap called the heap? I mean the bit of memory which we dynamically allocate bits of.
I don't have a citation for this, but I've always believed it derives from "a place to put stuff; a bit like the stack only less organised".
A stack has strict rules about where you add and remove things, but a heap doesn't.
链接地址: http://www.djcxy.com/p/14538.html上一篇: 为什么Java使用堆数据结构来存储对象?