多项选择题
Which declarations will allow a class to be started as a standalone program?()
A.public void main(String args[])
B.public void static main(String args[])
C.public static main(String[] argv)
D.final public static void main(String [] array)
E.public static void main(String args[])
点击查看答案&解析
相关考题
-
多项选择题
Whichstatementsaretrueconcerningthedefaultlayoutmanagerforcontainersinthejava.awtpackage?()
A.Objects instantiated from Panel do not have a default layout manager.
B.Objects instantiated from Panel have FlowLayout as default layout manager.
C.Objects instantiated from Applet have BorderLayout as default layout manager.
D.Objects instantiated from Dialog have BorderLayout as default layout manager.
E.Objects instantiated from Window have the same default layout manager as instances of Applet. -
单项选择题
What will be written to the standard output when the following program is run?() public class Q63e3 { public static void main(String args[]) { System.out.println(9 ^ 2); } }
A.81
B.7
C.11
D.0
E.false -
填空题
WritealineofcodethatdeclaresavariablenamedlayoutoftypeLayoutManagerandinitializesitwithanewobject,whichwhenusedwithacontainercanlayoutcomponentsinarectangulargridofequal-sizedrectangles,3componentswideand2componentshigh.()
