![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
String s = "hello";String t = "hello";char c[] = {'h','e
A.s.equals(t);
B.t.equals(c);
C.s==t;
D.t.equals(new String("hello"));
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
A.s.equals(t);
B.t.equals(c);
C.s==t;
D.t.equals(new String("hello"));
类Test定义如下: public class Test{ public static void main(String args[]) { String sty=new String("abcde"); char ch[]={A,B,C,D,E}; ml(str,ch); System.out.print(str+","); System.out.println(ch); } public static void ml(String s,char ch[]) { s="Hello"; ch[3]=Z; } } 那么程序的执行结果为:【 】
import java.io.*;
public class abc
{
public static void main(String args[ ])
{
AB s = new AB("Hello!","I love JAVA.");
System.out.println(s.toString());
}
}
class AB
{
String s1;
String s2;
AB (String str1 , String str2 )
{
s1 = str1;
s2 = str2;
}
public String toString() { return s1+s2;
}
}
— Hello! My name's Jack Smith. — Hello! Mr. ______.
A.Jack
B.Smith
C.Jack Smith
A.That's all right .
B.Thanks for your concern .
C.Hello,Jan
D.Here's Mary .
E.Thank you,Jan
下面选项中的程序段,没有编译错误的是
A.char*sp,s[10];sp=""Hello"";
B.char*sp,s[10];S=""Hello"";
C.charstrl[10]=""computer"",str2[10];str2=strl;
D.charmark[];mark=""PROGRAM"";
— Hello! Is that Bill speaking? — Yes. Bill.
A.I'm
B.This is
C.My name's
Jack said hello to John’s parents and thanked them()their kindness.
A、from
B、with
C、for
D、by
A.Are you Jenny?
B.I’m listenin
C.Hi, how are you?
D.It’s Mary speakin
E.
- Hello , could I speak to Don please?-()
A. Who are you
B. Are you Jane
C. Who's speaking