4. 定义字符串String s1="hello";,下面的程序段输出的结果是( )。
if (s1.equals("hello"))
System.out.println("s1 equals \"hello\"");
else
System.out.println("s1 does not equals \"hello\"");
A. s1 equals "hello"
B. s1 does not equals "hello"
C. s1 equals \"hello\"
D. s1 does not equals \"hello\"
(责任编辑:admin)有不懂可以加客服微信:vq800020900 咨询