【单选题】【消耗次数:1】
下列哪个类或接口是类FilterOutputStream 的构造方法的输入参数()。
InputStream
OutputStream
File F102
RandomAccessFile
参考答案:
复制
纠错
相关题目
【单选题】 FilterOutputStream是BufferedOutputStream、DataOutputStream及PrintStream的父类,以下哪个类可能是FilterOutputStream构造函数的参数类型?
①  OutputStream
②  File
③  InputStream
④  BufferedOutputStream
【单选题】 下列四个选项中,不是File类的构造方法的是( )。
①  File(String pathname)
②  File(String parent,String child)
③  File(File parent,String child)
④  File(char filename[])
【单选题】 在通常情况下, 下列哪个类的对象可以作为BufferedReader类构造方法的参数( )。
①  PrintStream
②  FileInputStream
③  InputStreamReader
④  FileReader
【单选题】 欲构造ArrayList类的一个实例,此类继承了List接口,下列哪个方法是正确的?( )
①  ArrayList myList=new Object();
②  List myList=new ArrayList();
③  ArrayList myList=new List();
④  List myList=new List();
【单选题】 下列关于流类和File类的说法中错误的一项是( )。
①  File类可以重命名文件
②  File类可以修改文件内容
③  流类可以修改文件内容
④  流类不可以新建目录
【多选题】 下列哪个是数组Array类的拷贝方法?
①  Copy(Array,?Array,?Int32)
②  Copy(Array,?Array,?Int64)
③  Copy(Array,?Int32,?Array,?Int32,?Int32)
④  Copy(Array,?Int64,?Array,?Int64,?Int64)
【判断题】 实现接口的类不能是抽象类。
①  正确
②  错误
【单选题】 下面的程序段创建了BufferedReader类的对象in,以便读取本机c盘my文件夹下的文件1.txt。File构造函数中正确的路径和文件名的表示是( )。 File f = new File(填代码处); file =new FileReader(f); in=new BufferedReader(file);
①  ./1.txt
②  ../my/1.txt
③  c:\\my\\1.txt
④  c:\ my\1.txt
【单选题】 类模板的模板参数( )。
①  只能作为数据成员的类型
②  只可作为成员函数的返回类型
③  只可作为成员函数的参数类型
④  以上三种均可
【单选题】 类模板的模板参数( )。
①  只能作为数据成员的类型
②  只可作为成员函数的返回类型
③  只可作为成员函数的参数类型
④  以上三种均可
随机题目
【单选题】 A: Will you be free tomorrow evening? B: [填空]
①  No,Ill be busy.
②  What is the matter?
③  Im sorry I wont be free then.
④  No,Ill have no time.
【单选题】 A: Have you ever been to Huangshan? B:[填空].
①  No. Twice
②  I went there twice
③  Yes. Twice
④  Yes. Ill go there next month
【单选题】 A: Is there a bank near here? B: [填空].
①  Its very far
②  Its here
③  Yes, there is a big one
④  Its very crowded
【单选题】 A: David injured his leg playing football yesterday. B: Really? [填空]
①  Who did that?
②  hats wrong with him
③  How did that happen
④  Why was he so careless?
【单选题】 A: How are you doing?B: [填空].
①  Good night
②  Not so bad. And you?
③  I m pleased.
④  How do you do?
【单选题】 A: Would you like me to feed your cats while youre on your holiday? B: [填空].
①  I appreciate it, but Ive already fed them
②  No problem, I was more than glad to do it
③  Thanks for offering your help, but my sisters going to do it
④  Certainly, feeding cats is my favorite pastime
【单选题】 A: I missed yesterdays basketball final. B: [填空]
①  What a pity!
②  Its a good idea.
③  Remember to bring it next time.
④  Im glad to hear that.
【单选题】 A: May I use your dictionary for a moment? B: [填空].
①  Its well
②  It doesnt matter
③  By all means
④  Here you are
【单选题】 A: Are you feeling better today? B: [填空].
①  There must be something wrong
②  Just have a good rest
③  Yes, thank you, doctor. But I still dont feel good
④  Dont worry about me
【单选题】 A: How about going to dinner at the Mexican restaurant tonight? B: [填空].
①  I like Mexican food
②  Id like to, but I already have plans for tonight
③  Forget it
④  I dont know