使用当前浏览器访问考试宝,无法享受最佳体验,推荐使用 Chrome 浏览器进行访问。
更新时间: 试题数量: 购买人数: 提供作者:
有效期: 个月
章节介绍: 共有个章节
我的错题 (0道)
我的收藏 (0道)
我的斩题 (0道)
我的笔记 (0道)
顺序练习 0 / 0
随机练习 自定义设置练习量
题型乱序 按导入顺序练习
模拟考试 仿真模拟
题型练习 按题型分类练习
易错题 精选高频易错题
学习资料 考试学习相关信息
以下哪一项是下列代码的执行输出结果?
public class Hello{
public static void main (String args[]) {
boolean boo = false;
if(boo = true){
System.out.print(“hello”);
System.out.print(“你好”);
}
else{
System.out.print(“ok”);
System.out.print(“yes”);
}
public class Hello{
int m = 100;
if(m = 100){
System.out.print("hello");
System.out.print("你好");
System.out.print("ok");
System.out.print("yes");
下列用ABCD注释标注的哪行代码有错误? public class Hello{ public static void main (String args[]) { int a[] = {1,2,3,4} ; //A for(int i:a){ //B System.out.printin(i); //C int m = 0; for(m:a) //D System.out.println(m); } } }