给出下列的程序段,则哪个选项返回true? ( ) String s="hello"; String t="hello"; char c[]={’h’,’e’,’l’,’l’,’o’};

admin2009-02-15  14

问题 给出下列的程序段,则哪个选项返回true?    (    )    String s="hello";    String t="hello";    char c[]={’h’,’e’,’l’,’l’,’o’};

选项 A、s.equals(t);
B、Lequals(c);
C、s==t;
D、t==c;

答案1

解析
转载请注明原文地址:https://kaotiyun.com/show/S3np777K
0

最新回复(0)