A. Run();
B. Start();
C. Execute();
D. Run(Runnable r);
E. Start(Runnable r);
F. Execute(Thread t);
第2题
A.Intfoo=(int)Math.max(bar);
B.Intfoo=(int)Math.min(bar);
C.Intfoo=(int)Math.abs(bar);
D.Intfoo=(int)Math.ceil(bar);
E.Intfoo=(int)Math.floor(bar);
F.Intfoo=(int)Math.round(bar);
第3题
A.PublicclassgetClass()
B.PublicObjectgetSource()
C.PublicComponentgetSource()
D.PublicComponentgetTarget()
E.PublicComponentgetComponent()
F.PublicComponentgetTargetComponent()
第4题
importjava.awt.*;publicclassTestextendsFrame{publicTest(){add(newLabel(Hello”));add(newTextField(Hello”));add(newButton(Hello”));pack();show();}publicstaticvoidmain(Stringargs){newTest();}}Whatistheresult?()
A.Thecodewillnotcompile.
B.AWindowwillappearcontainingonlyaButton.
C.AnIllegalArgumentExceptionisthrownatline6.
D.AWindowbuttonwillappearbutwillnotcontaintheLabel,TextField,orButton.
E.AWindowwillappearcontainingaLabelatthetop,aTextFieldbelowtheLabel,andaButtonbelowtheTextField.
F.AWindowwillappearcontainingaLabelontheleft,aTextFieldtotherightoftheLabel,andabuttontotherightoftheTextField.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!