下列选项中,可以正确实现String初始化的是哪一项?
A.Stringstr="abc";
B.Stringstr='abc';
C.Stringstr=abc;
D.Stringstr=0;
正确答案:A
猜你喜欢