Java软件开发练习题
}
4、在Java语言中,用
5、在Java中,字符是以16位的码表示。
6、请在下列程序的空白处,填上适当的内容:
Import java. awt. *;
Import java. util. *;
Class BufferTest{
Public static void main(string args[])
Throws IOException{
FileOutputStream unbuf=
new FileOutputStream(“test.one”) ;
BufferedOutputStream buf=
new System.out.println
(“write file unbuffered: ” + time(unbuf) + “ms”);
System.out.println
(“write file buffered: ” + time(buf) + “ms”);
}
Static int time (OutputStream os)
Throws IOException{
Date then = new Date();
for (int i=0; i<50000; i++){
os.write(1);
}
}
os.close();
return(int)(()new Date()).getTime() - then.getTime()); }
7、代码System.out.println(066)的输出结果是
8、表达式(10*49.3)的类型是型。
9、抛出异常的语句是语句。
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库Java软件开发练习题(8)在线全文阅读。
相关推荐: