String sName = new String()
时间: 2024-02-12 17:50:18 浏览: 88
关于String s=new String( "Hello")的例子思考
This line of code creates a new instance of the String class and assigns it to the variable sName. However, since no value is provided as an argument to the String constructor, the string will be empty.
阅读全文