填空题

Java不直接支持多继承,但可以通过【 】实现多继承。

【参考答案】

接口 或interface 或实现接口
<上一题 目录 下一题>
热门 试题

填空题
请阅读下列程序代码,然后将程序的执行结果补充完整。程序代码:public class throwsException{static void Proc(int sel)throws ArithmeticException,ArrayIndexOutOfBoundsException{System.out.println( In Situation +sel);if(sel==0){System.out.println( no Exception caught );return;}else if(sel==1){int iArray[]=new int[4];iArray[1]=3;}}public static void main(String args[]){try{Proc(0);Proc(1)}catch(ArrayIndexOutOfBoundsException e){System.out.println( Catch +e);}finally{System.out.println( in Proc finally );}}}执行结果:In、Situation 0no Exception caught【 】in Proc finally
填空题
程序中多个线程互相等待对方的持有的锁,而在得到对方持有的锁之前都不会释放自己的锁,就造成了都想得到资源而又都得不到的现象,使线程不能继续运行,这种状态在计算机中称为【 】。
相关试题
  • 在下列源代码文件Test.java中,哪个选项是...
  • 为了区分类中重载的同名的不同的方法,要求...
  • 下列关于Applet的叙述中,正确的是【 】
  • 下列有关基于Swing的Applet用户界面说法不...
  • ++ 运算符的操作数个数是【 】