填空题
Swing的事件处理机制包括
【13】
、事件和事件监听者。
【参考答案】
事件源
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
下列程序创建了一个线程并运行,请填空,使程序完整。public class ThreadTest{public static void main(String args[]){Hello h=new Hello();【12】 ;t.start();}}class Hello implements Runnable{int i;public void run(){while(true){System.out.println( Hello +i++);if(i==5) break;}}}
点击查看答案&解析
填空题
请阅读下列程序代码,然后将程序的执行结果补充完整。程序代码: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【14】 in Proc finally
点击查看答案&解析
相关试题
请写出下面程序的运行结果:public class...
在Java中所实现的多维数组,实际上是由一维...
Java中的继承机制之所以能够降低程序的复杂...