不挂科搜题免费

问题:

下列选项中,可以正确创建一个字符串的是( )A. String s1 = "itcast"; B.

答案:

String s1 = "itcast";;String s2 = new String("itcast");;String s3 = new String(new char[]{'i','t','c','s','t'});