[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fe3FvW9nLAy9zWolsDCbX71OYLBX7zAgbC1KQogG6muI":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":16,"related":17,"source":27,"type":28},[],"2026-01-01 03:59:29",297107171,[8,9,10,11],"我是程序员我爱代码","我是程序员","乱码","我爱代码",{"courseId":13,"courseImg":14,"courseName":15},"81220dd3e4cd363aa0f91dea39084f21","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F91c9a3ea300f8cc05b4aa8045bd4a493.png","Java高级程序设计","请阅读下面的程序 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里面的内容是( )",[18,29,38,47,56,65,71,80,83,91],{"answer":19,"createTime":5,"id":20,"options":21,"question":26,"source":27,"type":28},[],297107164,[22,23,24,25],"两者没有区别","每次读入的字节数不同","前者带有缓存,后者没有","前者以字节为单位读写,后者以字符为单位读写","字节流和字符流的区别是( )","v1",0,{"answer":30,"createTime":5,"id":31,"options":32,"question":37,"source":27,"type":28},[],297107165,[33,34,35,36],"InputStream","Writer","OutputStream","Reader","下列哪项是用于输出的字符流? ( )",{"answer":39,"createTime":5,"id":40,"options":41,"question":46,"source":27,"type":28},[],297107166,[42,43,44,45],"isFile()","isAbsolute()","getName()","getPath()","从键盘上输入一个字符串创建文件对象, 若要判断该文件对象为文件,可使用下列哪个方法?( )",{"answer":48,"createTime":5,"id":49,"options":50,"question":55,"source":27,"type":28},[],297107167,[51,52,53,54],"-1","1","无标记","0","用 read()方法读取文件内容时,判断文件结束的标记为( )",{"answer":57,"createTime":5,"id":58,"options":59,"question":64,"source":27,"type":28},[],297107168,[60,61,62,63],"使用字节缓冲流读写文件时,可以一次性读取多个字节的数据","字节缓冲流只能用于处理文本数据","使用字节缓冲流可以减少对磁盘IO的频繁访问","使用字节缓冲流可以提高读取和写入操作的效率","下列关于字节流缓冲区的说法,错误的是( )",{"answer":66,"createTime":5,"id":67,"options":68,"question":70,"source":27,"type":28},[],297107169,[54,51,69,52],"null","下列选项中,FileWriter类中read()方法读取到流末尾的返回值是( )",{"answer":72,"createTime":5,"id":73,"options":74,"question":79,"source":27,"type":28},[],297107170,[75,76,77,78],"在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":81,"createTime":5,"id":6,"options":82,"question":16,"source":27,"type":28},[],[8,9,10,11],{"answer":84,"createTime":5,"id":85,"options":86,"question":89,"source":27,"type":90},[],297107172,[87,88],"正确","错误","FileOutputStream类会检查文件是否存在,如果文件不存在则抛出异常",3,{"answer":92,"createTime":5,"id":93,"options":94,"question":95,"source":27,"type":90},[],297107173,[87,88],"如果一个File对象对应的目录下有文件或子目录,调用该对象的delete()方法可以将该目录删除"]