What's the point of creating and having an opportunity to create a String object out of string pool

后端 未结 0 1803
甜味超标
甜味超标 2021-01-26 06:57

I know that String objects are immutable, and I can create String object in heap (String s1 = new String("text1") and in string

相关标签:
回答
  • 消灭零回复
提交回复
热议问题