What will the woman do on Thursday?
A.She is going to the cinema with the man.
B.She is going to do her English homework at home.
C.She is going to stay in the library.
第1题
A.-1
B.255
C.127
D.Compilationwillfail.
E.Compilationwillsucceedbuttheprogramwillthrowanexceptionatline4.
第2题
A.0
B.1
C.14
D.–15
E.Anerroratline3causescompilationtofail.
F.Anerroratline4causescompilationtofail.
第3题
A.Compilationwillfail.
B.Compilationwillsucceedandtheprogramwillprint“3”
C.CompilationwillsucceedbuttheprogramwillthrowaClassCastExceptionatline6.
D.CompilationwillsucceedbuttheprogramwillthrowaClassCastExceptionatline7.
第4题
A.0
B.3
C.4
D.5
E.Thecodewillnotcompile.
第5题
对方法main的第1行定义正确的是()。
A、public main(String arg [ ] )
B、public void main(String arg [ ] )
C、public static void main(String arg [ ] )
D、public static void main(String args [ ] )
第6题
A.Theprogramrunsandprintsnothing.
B.Theprogramrunsandprints“Finally”.
C.Thecodecomiles.Butanexceptionisthrownatruntime.
D.Thecodewillnotcompilebecausethecatchblockismissing.
第7题
A.NULL
B.Compilationfails.
C.Thecoderunswithnooutput.
D.Anexceptionisthrownatruntime.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!