Java Execution Process
Here attached an article about heap (堆) and stack (棧).
HeapAndStack
Java will store all things into system memory (system memory is physical mem + virtual mem), then it’s the OS to decide they go to physical memory or hard disk (virtual memory) later.
堆是先進(jìn)先出,而棧是先進(jìn)后出. But in Java, not that obvious differences.
Classically, the stuff in stack, OS can release automatically; but in heap, you have to release it manually. But Java has garbage collection, so the difference is not obvious now.
Two samples:
轉(zhuǎn)載于:https://www.cnblogs.com/backpacker/archive/2011/12/01/2269964.html
總結(jié)
以上是生活随笔為你收集整理的Java Execution Process的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: .Net MVC3中取得当前区域的名字(
- 下一篇: Git使用指南