要想遍历字符串”hello”,我们一般使用下面积木控制循环次数()
- · 有6位网友选择 错,占比75%
- · 有2位网友选择 对,占比25%
A.strcat(s,"Good");
B.s[20]="Good";
C.strcpy(s,"Good");
D.s="Good";
A.字符串常量 “Hello” 在 s 对象中是用链表存储的
B.string 类中对 [] 运算符进行了重载
C.string 的一个构造函数接收字符指针作为其参数
D.重载的 [] 运算符返回的是一个引用类型的数据(或者对象)
A.sleep(1000) InterruptedException
B.t.sleep(1000) InterruptedException
C.Thread.sleep(1000) RuntimeException
D.Thread.sleep(1000) InterruptedException
A.sleep(1000)
B.t.sleep(1000)InteruptedException InterruptedException
C.Thread.sleep(1000)
D.Thread.sleep(1000)RuntimeException InterruptedException
1、【单选题】Java语言中,正确的初始化语句是()。
A、char str[ ]="hello";
B、char str[100]="hello";
C、char str[ ]={’h’,’e’,’l’,’l’,’o’};
D、char str[ ]={’hello’};
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!