Thinking in java (1)----Where storage lives

来源:互联网 发布:淘宝老瑞手机怎么样 编辑:程序博客网 时间:2024/05/16 01:38

1, Register:the fasted storage.

2,The Stack: the second to the register,placed in RAM, store the object reference.

3,The Heap: placed in RAM. store the object;

4,Constant storage: placed in ROM, store the constants

5,Non-RAM:store somethings outside the program. The two primary examples are streamed objects and persistent objects;


0 0