设有如下变量char c = 'c';int i = 10;double d = 10;long l = 1;String s = "Hello";以下哪些语句编译不出错?
A.c=c+i;
B. s+=i;
C. i+=s;
D. c+=s;
A.c=c+i;
B. s+=i;
C. i+=s;
D. c+=s;
A、s1 == s2 是 true, s1 == s3 是 false
B、s1 == s2 是 true, s1 == s3 是 true
C、s1 == s2 是 false, s1 == s3 是 false
D、s1 == s2 是 false, s1 == s3 是 true
A、s.equals(t)
B、s==t
C、t.equals(new String("hello"))
D、t.equals(c)
String s="hello";
String t="hello";
char c[]={'h','e','l','l','o'};
以下语句返回true的是______。
A.s.equals(t); B.t.equals(c);
C.s==t;D.t.equals(new String("hello"));
E.t==c;
A、HelloWorld
B、World
C、Hello
D、出错
A、'....hello world' ' hello world'
B、'hello world....' ' hello world'
C、'hello world....' 'hello world '
D、'hello world....' 'hello world'
A、char b[10]={'G','O','O','D','!'};
B、char b[10]={'g','o','o','d','!'};
C、char b[10];strcpy(b,"GOOD!");
D、char b[10]="GOOD!";
A、be = BinExample() be.binMethod
B、be = BinExample() be.binMethod(self)
C、be = BinExample be.binMethod()
D、be = BinExample() be.binMethod()
A、char b[]="hi";
B、char b[5]="a";
C、char b[6]={'C','h','i','n','a','\0'};
D、char b[5]={'C','h','i','n','a'}
A、编译成功,输出为“32,-4”
B、编译成功,输出为“16,4”
C、编译成功,输出为“32,2147483644”
D、编译成功,输出为“16,2147483644”
E、编译器拒绝表达式“b>>1”,因为不能对一个负数应用“>>”操作
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!