问题
单项选择题
给出下面程序:public class ex51{ public static void main(String[] args) { String s = "hello"; String t = "hello"; char c[] = {’h’, ’e’, ’1’, ’1’, ’o’}; System. out. println (______) } } 在程序的横线处填入下列______选项后,程序输出的结果是true。
A.equals(
B.equals(
C.s == t
D.t == c
答案
参考答案:C