首页 > 考研
题目内容 (请给出正确答案)
[主观题]

对于File Input Stream类,下列哪一项是不正确的()?

A.从Input Stream类继承

B.不支持Input Stream的有些方法

C.不适合读取字符文件,适合读取字节文件

D.能实现文件的倒序读取

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“对于File Input Stream类,下列哪一项是不正确…”相关的问题
第1题
请在划线处编写适当语句,完成此程序使它能正确执行。 import java.io.*; public class Le
ap Year{ public static void main (String arget[]) throws IOException{ InputStreamReader ir; BufferedReader in; ir=new Input Stream Reader (System.in); in=new BufferedReader(ir); System.out.println(“输入年份是:”): String s=in.readLine(); int year=Integer.parseInt(s); { System.out.println(" "+ year+“年是闰年。”); } else { System.out.println(" " +year+“年不是闰年。”); } } }

点击查看答案
第2题
How to Save Web Page Information You can save the whole web page or part of its contents(text,graph

How to Save Web Page Information

You can save the whole web page or part of its contents(text,graph or linkage)as file kept on disk.They can be displayed or used in other files,also sent to other,or printed.

To save web pages,you can;

Save the current web pages in your computer.To do that,single click"save as"on"file"menu,and on the"save web page"dialogue box select the folder for saving web pages,and on the"file name"input the file name of this web page,then single click "save"button;

Duplicate the information from the web page to file.To do that,you select the infor mation on the web page to be saved(if you want to save the whole web page,then single click"all select"button on"edit"menu、and single click"copy"on"edit"menu.Finally,turn to the procedure for editing the information(for example,word),single click the position where the information is stored and then single click the "paste"on"edit"menu.

点击查看答案
第3题
与文件下载有关的组件和类,包括jspSmartUpload组件、File类、Files类、Request类和SmartUpload类。()
点击查看答案
第4题
在C#代码中,复制文件使用File类的()方法。

A.Exists()

B.Move()

C.Delete()

D.Copy()

点击查看答案
第5题
下面的程序是列出目录c:\Test中所有的.txt文件,请将程序补充完整。 import java.io.*;//引入j
ava.io包中所有的类 public class FileFilterTest{ public static void main(String args[]){ File dir=new File("C://Test"); Filter filter=new Filter("txt"); System.out.println("list java files in directory"+dir); String files[]=dir.list(filter); for(int i=0;i<files.length;i++){ File f=【 】;//为目录dir下的文件或目录创建一个File对象 if(f.is File()) System.out.println("file"+f); else System.out.println("sub directory"+f); } } } class Filter implements FilenameFilter{ String extent; Filter(String extent){ this.extent=extent; } public boolean accept(File dir,String name){ return name.endsWith("."+extent)://返回文件的后缀名 } }

点击查看答案
第6题
有如下代码段,请填写完整所缺的部分。 import java.util.Vector; import java.io.*;
public class Test_Ser { public static void main(String[] args) throws Exception { Vector v = new Vector(); //生成一个向量表 v.add(new String("Test String")); //增加一个字符串对象 FileOutputStream stream = new FileOutputStream("d:\\test.ser"); //构造文件输出流 ObiectOutputStream p =【 】; //绑定 p.writeObject(v); //输出继承了串行化接口的类 p.flush(); p.close(); ostream.close(); v.clear(); //清空向量表,此时的v.size()应该为0 FileInputStream istream=new FileInputStream("d:\\test.set"); //构造文件输入流 ObjectInputStream pr = new ObjectInputStream(istream); //绑定 v = (Vector)pr.readObject();0 //读入串行化的类 istream.close(); System.out.println("v.size()="+v.size()); //验证读入类的正确性 System.out.println("v.get(0)="+(String)v.get(0)); } }

点击查看答案
第7题
A.streamB.torrentC.currentD.flow

A.stream

B.torrent

C.current

D.flow

点击查看答案
第8题
Consonants vary depending on where and how the air stream gets through, the place and
movement of the tongue, and also whether the voice is used or not.()

点击查看答案
第9题
Storm中的Stream Groupings有哪几种方式()。

A.随机分组

B.按照字段分组

C.广播发送

D.全局分组

E.不分组

F.直接分组

点击查看答案
第10题
Little Anna's parents walked slowly, one after___, through the shallow water of a stream t
o search for her lost bag.

A.the other

B.another

C.other

D.others

点击查看答案
第11题
"It won't be a crime, but it will certainly be a miracle" means "______"A.Since no other p

"It won't be a crime, but it will certainly be a miracle" means "______"

A.Since no other persons are here, I wont disclose (揭发) it

B.It will certainly be a miracle if I don't disclose it

C.There isn't any fish in the stream

D.I will surely report you to the owner of the stream

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改