当前位置:SCJP程序员认证考试题库

问题:

[单选]

The file “file.txt” exists on the file system and contsins ASCII text.  Given:  
try {  
File f = new File(“file.txt”);  
 OutputStream out = new FileOutputStream(f, true); 
 }  
 catch (IOException) {}  
What is the result?()

A .  The code does not compile.
B .  The code runs and no change is made to the file.
C .  The code runs and sets the length of the file to 0.
D .  An exception is thrown because the file is not closed.
E .  The code runs and deletes the file from the file system.

操作中发生疑问时,应立即停止操作并修改操作票。 不属于《协调制度》中章编排原则的是() 按照商品原材料属性划分。 按照商品用途或功能划分。 按照商品名称划分。 章内按照加工程度划分。 在Word 2003中,按()键与工具栏上的保存按钮功能相同。 Ctrl+C。 Ctrl+V。 Ctrl+A。 Ctrl+S。 花生为何地下结实? 使用完毕的操作票应注明”已执行”的字样,并保存一星期。

The file “file.txt” exists on the file system and contsins ASCII text.  Given:  
try {  
File f = new File(“file.txt”);  
 OutputStream out = new FileOutputStream(f, true); 
 }  
 catch (IOException) {}  
What is the result?()

参考答案:

  参考解析

本题暂无解析

在线 客服