• 2022-06-07
    已知如下代码,其执行结果是什么()publicclassTest{publicstaticvoidmain(String[]args){Strings1=newString("Hello");Strings2=newString("Hello");System.out.print(s1==s2);Strings3="Hello";Strings4="Hello";System.out.print(s3==s4);System.out.print(s3=="Hello");}}
    A: falsetruetrue
    B: truefalsetrue
    C: truetruefalse
    D: fasletruefalse