选择题1.Java application中的主类需包含main 方法,以下哪项是main 方法的正确形参
( B )A、 String args B、 String args[] C、Char arg D、StringBuffer args[] 2
下列的哪个选项可以正确用以表示八进制值8
( D )A)0x8 B)0x10 C)08 D ) 010 5.Java Applet在被浏览器加载的时候首先被执行且在applet整个生命周期中只被运行一次的方法是( A )
A、init() B、 start() C、opreationcrawl() D、reader() 6.在浏览器中执行applet 程序,以下选项中的哪个方法将被最先执行( A )
A、init() B、start() C、destroy() D、stop() 9.类 Parent 、Child 定义如下:1. public class Parent 2.{ public float aFun(float a, float b) throws 3. IOException { } 4.} 5.public class Child extends Parent{ 6.7.} 将以下哪种方法插入行6 是不合法的
( A )A、float aFun(float a, float b){ } B、public int aFun(int a, int b)throws Exception{ } C、public float aFun(float p, float q){ } D、public int aFun(int a, int b)throws IOException{ } 10.给出下面代码,关于该程序以下哪个说法是正确的
( C )public class Person{ static int arr[]