单项选择题

构造方法名必须与______相同,它没有返回值,用户不能直接调用它,只能通过new调用。

A.类名
B.对象名
C.包名
D.变量名
<上一题 目录 下一题>
热门 试题

单项选择题
为使Java程序独立于平台,Java虚拟机把字节码与各个操作系统及硬件______。
A.分开
B.结合
C.联系
D.融合
单项选择题
阅读下列程序片段。 Public void test() Try sayHello(); system. out. println( hello ); catch(ArrayIndexOutOfBoundException e) System. out. println( ArraylndexOutOfBoundException ); catch(Exception e) System. out. println( Exception ); finally System. out. println( finally ); 如果sayHello()方法正常运行,则test()方法的运行结果将是______。
A.Hello
B.ArrayIndexOutOfBondsException
C.Exception
Finally
D.Hello
Finally
相关试题
  • 表达式(10*49.3)的类型是____...
  • 本题的功能是定义图形按钮。窗口中有两个图...
  • 本题求一个实数37.13的整数部分和小数...
  • 代码System. out. println(066)的...
  • 本题中,生成了一个窗口,该窗口的长、宽为...