• 2022-06-19
    若String s1="abc"; String s2="abc",则s1==s2的值为()
    A: true
    B: false
  • A

    内容

    • 0

      String s1 = "abc"; String s2 = "abc"; 表达式 s1==s2的值是( )

    • 1

      String s1="abc";String s2="abcd";bool n = s1.equals(s2);输出n的值是 A: 0 B: 1 C: true D: false

    • 2

      6、下列程序的运行结果是()。String s1 = new String( "abc" );String s2 = new String( "abc" );System.out.println( s1 == s2);String s3 = "你好吗?" ;String s4 = "你" ;String s5 = "好吗?" ;System.out.println( "你好吗?" ==("你" + "好吗?")); A: true true B: false false C: false true D: true false

    • 3

      String s1,s2; s1=new String("Hello!"); s2=new String("Hello!"); 则s1==s2的值为true

    • 4

      String s1 = "abc"; String s2 = "abc"; 表达式 s1.equals(s2)的值是( )