![](https://lstatic.shangxueba.com/jiandati/h5/images/m_q_title.png)
[单选题]
给定如下Java程序,Test类中的四个输出语句输出结果依次是 。 class Person { String name="person"; public void shout(); } }
A.true,false,true,false
B.false,true,false,false
C.true,true,true,编译错误
D.true,true,false,编译错误
提问人:网友lixin080108
发布时间:2022-01-07
A.true,false,true,false
B.false,true,false,false
C.true,true,true,编译错误
D.true,true,false,编译错误
A、FinallyException
B、Finally
C、FinishedFinally
D、FinalyFinished
A、编译错误
B、运行期异常,异常类型为NullPointerException
C、运行期异常,异常类型为ArithmeticExceptioin
D、正确运行,但无输出内容
public class Test {
String x="1";
int y;
public static void main(String args[]) {
int z=2;
System.out.println(x+y+z);
}
}
A.3
B.102
C.12
D.程序有编译错误
A、如果文件不存在 ,则程序退出
B、如果文件已经存在 , 则程序退出
C、如果文件已经存在,则保留该文件
D、如果文件不存在 , 则创建该文件
A、输出 "Done the test".
B、程序输出"The end"
C、程序编译错误.
D、程序输出"Done the test"和 "The end"
A、Java
B、Jav
C、ava
D、avaT
A、A.运行时出现异常
B、B.正确运行,输出str1
C、C.正确运行,输出str2
D、D.编译时出现异常
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!