填空题

构造方法是类中的一种特殊方法,用它来定义对象的【 】。

【参考答案】

初始状态
<上一题 目录 下一题>
热门 试题

单项选择题
在oneMethod( )方法运行正常的情况下,程序段将输出( )。public void test( ){try { oneMethod( );System.out.println( condition 1 );} catch (ArrayIndexOutOfBoundsException e){System.out.println( condition 2 );} catch(Exception e){System.out.println( condition 3 );} finally {System.out.pritln( finally );}}
A.condition 1
B.condition 2
C.condition 3
D.condition 1
填空题
下列是一个类的定义,将程序段补充完整。class A {String s;【 】int a=66;A(String sl) { s=sl;}static int geta( ) { return a;}}
相关试题
  • 阻塞状态根据产生的原因可分为【 】、等待...
  • 一个关系表的行称为【 】。
  • Java对象串行化技术,主要是通过【 】类和...
  • 设a = 8,则表达式 a > > > 2...
  • 下列程序的功能是显示用户在命令行方式下指...