What the difference between using the class reference type Object and the class reference type String when creating a new string?

后端 未结 0 579
栀梦
栀梦 2020-12-03 22:50

I am new to java. I have learned that in java string variables are objects and that you can create them by instantiating the string class in the java.lang package like this:

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