[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fUHiagyVfTajekS0z06SnjFc5r93jFH908C8rTS0FjdY":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":10,"question":17,"related":18,"source":28,"type":93},[],"2025-12-09 10:59:01",256992966,[8,9],"正确","错误",{"count":11,"courseId":12,"courseImg":13,"courseName":14,"workId":15,"workName":16},16,"81220dd3e4cd363aa0f91dea39084f21","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F91c9a3ea300f8cc05b4aa8045bd4a493.png","Java高级程序设计","work_47211473","第9章 IO流作业","FileOutputStream类会检查文件是否存在,如果文件不存在则抛出异常",[19,30,39,48,57,66,72,81,90,94],{"answer":20,"createTime":5,"id":21,"options":22,"question":27,"source":28,"type":29},[],256992958,[23,24,25,26],"每次读入的字节数不同","前者带有缓存,后者没有","前者以字节为单位读写,后者以字符为单位读写","两者没有区别","字节流和字符流的区别是( )","v1",0,{"answer":31,"createTime":5,"id":32,"options":33,"question":38,"source":28,"type":29},[],256992959,[34,35,36,37],"Writer","Reader","OutputStream","InputStream","下列哪项是用于输出的字符流? ( )",{"answer":40,"createTime":5,"id":41,"options":42,"question":47,"source":28,"type":29},[],256992960,[43,44,45,46],"getPath()","getName()","isFile()","isAbsolute()","从键盘上输入一个字符串创建文件对象, 若要判断该文件对象为文件,可使用下列哪个方法?( )",{"answer":49,"createTime":5,"id":50,"options":51,"question":56,"source":28,"type":29},[],256992961,[52,53,54,55],"0","1","-1","无标记","用 read()方法读取文件内容时,判断文件结束的标记为( )",{"answer":58,"createTime":5,"id":59,"options":60,"question":65,"source":28,"type":29},[],256992962,[61,62,63,64],"使用字节缓冲流可以提高读取和写入操作的效率","使用字节缓冲流读写文件时,可以一次性读取多个字节的数据","使用字节缓冲流可以减少对磁盘IO的频繁访问","字节缓冲流只能用于处理文本数据","下列关于字节流缓冲区的说法,错误的是( )",{"answer":67,"createTime":5,"id":68,"options":69,"question":71,"source":28,"type":29},[],256992963,[52,54,53,70],"null","下列选项中,FileWriter类中read()方法读取到流末尾的返回值是( )",{"answer":73,"createTime":5,"id":74,"options":75,"question":80,"source":28,"type":29},[],256992964,[76,77,78,79],"编译出错","在D盘创建文件demo.txt,但文件内容是空的","在D盘创建文件demo.txt,并写入数据abc","在D盘已有的文件demo.txt中追加写入abc","请阅读下面的程序 public class Hello { public static void main(String[] args) throws IOException { FileOutputStream fos = new FileOutputStream(&quot;D:\\\\demo.txt&quot;); fos.write(&quot;abc&quot;); fos.close(); }} 下列针对以上程序运行结果的描述,正确的是( )",{"answer":82,"createTime":5,"id":83,"options":84,"question":89,"source":28,"type":29},[],256992965,[85,86,87,88],"我是程序员我爱代码","我爱代码","我是程序员","乱码","请阅读下面的程序 public class Demo { public static void main(String[] args) throws Exception { FileOutputStream fos = new FileOutputStream(&quot;aa.txt&quot;,true); fos.write(&quot;我爱代码&quot;.getBytes()); fos.close(); }} 假设项目根目录下有aa.txt,文本内容为&quot;我是程序员&quot;,请问执行上面程序执行后aa.txt里面的内容是( )",{"answer":91,"createTime":5,"id":6,"options":92,"question":17,"source":28,"type":93},[],[8,9],3,{"answer":95,"createTime":5,"id":96,"options":97,"question":98,"source":28,"type":93},[],256992967,[8,9],"如果一个File对象对应的目录下有文件或子目录,调用该对象的delete()方法可以将该目录删除"]