String是不可变量

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

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

String的内存分析

String的内存分析

String的内存分析

String的内存分析

相关文章:

  • 2021-09-08
  • 2021-09-15
  • 2021-08-16
  • 2021-08-09
  • 2021-11-18
  • 2021-07-23
猜你喜欢
  • 2021-06-02
  • 2021-10-26
  • 2021-05-24
  • 2021-12-12
  • 2022-02-24
  • 2021-10-24
  • 2021-08-23
相关资源
相似解决方案