String的内存分析

xiaoxiao2021-02-28  23

String是不可变量

String全部都是放在String port的常量池中。String只有常量,没有变量。 String叫字符串常量,不存在变量

456的内存不会消失的,String port中的内存不会被垃圾回收。

转载请注明原文地址: https://www.6miu.com/read-2149964.html

最新回复(0)