首页 试题广场 > 试题详情
单选题

在Java中,以下代码输出结果是( )。
public static void main(String args[]){
for(int i = 0; i < 4; i++){
i = i+1;
if(i >= 4)
break;
System.out.println("hello,world!");
}
}

  • A.hello,world!
    hello,world!
  • B.hello,world!
  • C.hello,world!
    hello,world!
    hello,world!
  • D.hello,world!
    hello,world!
    hello,world!
    hello,world!
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 13个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部