填空题

当使用Thread t=new Thread(r)创建一个线程时,表达式:rinstanceof Thread的值是()。

【参考答案】

false
<上一题 目录 下一题>
热门 试题

填空题
FileInputStream是字节流,BufferedWriter是字符流,ObjectOutputStream是()。
填空题
请阅读下列程序代码,然后将程序的执行结果补充完整。 程序代码: 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 0 no Exception caught () in Proc finally
相关试题
  • 请阅读下列程序代码,然后将程序的执行结果...
  • break语句最常见的用法是在switch语句中,...
  • FileInputStream是字节流,BufferedWriter...
  • 线程在生命周期中要经历5种状态,分别是新...
  • 每个Applet程序必须有一个类是()类的子类...