题目内容
(请给出正确答案)
[单选题]
classMyApp{publicstaticvoidmain(String[]args){intage;System.out.println(age=”+age);}}执行上述代码后输出的结果是哪项?()
A.age=0
B.age=null
C.age=
D.程序编译错误
查看答案
如果结果不匹配,请 联系老师 获取答案
A.age=0
B.age=null
C.age=
D.程序编译错误
A.123456
B.123455
C.123450
D.编译错误
A.123456
B.123455
C.123450
D.编译错误
A.输出结果为52,62,20
B.输出结果为52,62
C.参数不匹配,输出不确定值
D.格式控制符与输出表达式列表没有对应,故表达式非法,编译不能通过
A.编译时将产生错误
B.编译时正确,运行时将产生错误
C.输出零
D.输出空
A.WriteHello
B.RubberWriteHello
C.编译错误
D.运行时抛出异常
A.Petp=(Pet)c运行错误
B.Petp=(Pet)c编译错误
C.Petp=(Pet)c止常执行
D.以上都不对