首页
题库
网课
在线模考
桌面端
登录
搜标题
搜题干
搜选项
0
/ 200字
搜索
单项选择题
intindex=1;intfoo=newint;intbar=foo[index];intbaz=bar+index;Whatistheresult?()
A.Bazhasthevalueof0
B.Bazhasthevalueof1
C.Bazhasthevalueof2
D.Anexceptionisthrown.
E.Thecodewillnotcompile.
点击查看答案&解析
手机看题
你可能感兴趣的试题
单项选择题
YouareassignedthetaskofbuildingapanelcontainingaTextAreaatthetop,alabeldirectlybelowit,andabuttondirectlybelowthelabel.Ifthethreecomponentsareaddeddirectlytothepanel.WhichlayoutmanagercanthepanelusetoensurethattheTextAreaabsorbsallofthefreeverticalspacewhenthepanelisresized?()
A.GridLayout.
B.CardLayout.
C.FlowLayout.
D.BorderLayout.
E.GridBagLayout.
A.Ifthethreecomponentsareaddeddirectlytothepanel.WhichlayoutmanagercanthepanelusetoensurethattheTextAreaabsorbsallofthefreeverticalspacewhenthepanelisresized?()
A.GridLayout.
B.CardLayout.
C.FlowLayout.
D.BorderLayout.
E.GridBagLayout.
点击查看答案&解析
手机看题
单项选择题
publicclassIfTest(publicstaticvoidmain(stringargs){intx=3;inty=1;if(x=y)system.out.printIn(Notequal”);elsesystem.out.printIn(Equal”);})Whatistheresult?()
A.Theoutputis“Equal”
B.Theoutputin“NotEqual”
C.Anerroratline5causescompilationtofall.
D.Theprogramexecutesbutdoesnotprintamessage.
点击查看答案&解析
手机看题
微信扫码免费搜题