總結:new出的對象存儲堆中,””存儲常量池中,基本類型字面量爲常量或靜態變量時,存儲在常量池,爲成員變量存儲在堆中,爲局部變量存儲在棧中.
{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"typ
{"type":"doc","content":[{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"本文要點"}]},{