假设有以下代码String s = "hello";String t = "hello";char c[] = {'h', 'e', 'l', 'l', 'o'};下列选项中返回false的语句是:
A.s.equals(t); B.t.equals(c); C.s==t; D.t.equals(new String ("hello"));正确答案B
假设有以下代码String s = "hello";String t = "hello";char c[] = {'h', 'e', 'l', 'l', 'o'};下列选项中返回false的语句是:
A.s.equals(t); B.t.equals(c); C.s==t; D.t.equals(new String ("hello"));正确答案B