给定如下Java代码,编译运行时,以下( )语句的值是true。 String s=”hello”; String t=
2023-12-01JAVA复习
给定如下Java代码,编译运行时,以下( )语句的值是true。 String s=”hello”; String t=”hello”; String e=new String(”hello”) ; char c[]={'h','e','l','l','o'};
A.s.equals(t)
B.t.equals(c)
C.t==e
D.t==c
正确答案是A
