答案:数组的数组
(9)StringBuffer类提供 【9】 字符串对象的表示。
答案:可变或可编辑
(10)每个Applet程序必须有一个类是 【10】 类的子类。
答案:Applet
(11)线程在生命期中要经历5种状态,分别是新建状态、可运行状态、运行状态、 【11】 状态和
终止状态。
答案:阻塞
(12)FileInputStream是字节流;BufferedWriter是字符流;ObjectOutputStream是 【12】 。
答案:对象流或对象输出流
(13)break语句最常见的用法是在switch语句中,通过break语句退出switch语句,使程序从整个switch
语句后面的 【13】 开始执行。
答案:第一条语句
(14)请阅读下列程序代码,然后将程序的执行结果补充完整。
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()
no Exception caught
【14】
in Proc finally
答案:In Situation 1
(15)当使用Thread t=new Thread(r)创建一个线程时,表达式:r instanceof Thread的值为 【15】 。
答案:false