[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fJSvZ18LVwKEBhn0zjyB4OK3qOVpmfEaRlCpWMWHg5JE":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":31,"type":32},[],"2025-06-17 02:22:53",202271186,[8,9,10,11],"RandomAccessFile()","OutputStream()","DataOutputStream()","None of the above",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},59,"16ac35b83a21329409a3d9d1df63ee18","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F646115e0e5ecabc4dbd7c486e22acbf3.jpg","Java程序设计--软件23","work_44247821","一般热身——小HIIT","下面哪个I\u002FO类可以用来添加或修改一个文件的内容?()",[21,33,42,45,54,63,71,80,90,98],{"answer":22,"createTime":23,"id":24,"options":25,"question":30,"source":31,"type":32},[],"2025-06-17 02:22:52",202271184,[26,27,28,29],"前者带有缓冲,后者没有","前者是块读写,后者是字节读写","二者没有区别,可以互换使用","每次读写的字节数不同","字符流与字节流的区别在于","v1",0,{"answer":34,"createTime":5,"id":35,"options":36,"question":41,"source":31,"type":32},[],202271185,[37,38,39,40],"File","PrintWriter","Scanner","System","下面哪个类包含方法,能够检查一个文件是否存在?()",{"answer":43,"createTime":5,"id":6,"options":44,"question":19,"source":31,"type":32},[],[8,9,10,11],{"answer":46,"createTime":5,"id":47,"options":48,"question":53,"source":31,"type":32},[],202271187,[49,50,51,52],"ABCABC","ABC","Test","Test Test","下面的程序创建了一个文件输出流对象,用来向文件test.txt中输出数据,假设程序当前目录下不存在文件test.txt,编译下面的程序Test.java后,将该程序运行两次,则文件test.txt 的内容是( ). import java.io.*; public class Test { public static void main(String args[]) { try { String s=&quot;ABC&quot;; byte b[]=s.getBytes(); FileOutputStream file=new FileOutputStream(&quot;test.txt&quot;,true); file.write(b); file.close(); } catch(IOException e) { System.out.println(e.toString()); } } }",{"answer":55,"createTime":5,"id":56,"options":57,"question":62,"source":31,"type":32},[],202271188,[58,59,60,61],"FileInputStream in=new FileInputStream(&quot;file.dat&quot;); in.skip(9); int c=in.read()","FileInputStream in=new FileInputStream(&quot;file.dat&quot;); in.skip(10); int c=in.read()","FileInputStream in=new FileInputStream(&quot;file.dat&quot;); int c=in.read()","RandomAccessFile in=new RandomAccessFile(&quot;file.dat&quot;); in.skip(9); int c=in.readByte()","要从文件&quot;file.dat&quot;文件中读出第10个字节到变量c中,下列哪个方法适合( )",{"answer":64,"createTime":5,"id":65,"options":66,"question":70,"source":31,"type":32},[],202271189,[67,68,69,37],"FileInputStream","FileReader","FileWriter","在Java中,( )类提供定位本地文件系统,对文件或目录及其属性进行基本操作",{"answer":72,"createTime":5,"id":73,"options":74,"question":79,"source":31,"type":32},[],202271191,[75,76,77,78],"Writer","DataOutput","OutputStream","ObjectOutput","Java中类0bjectOutputStream支持对象的写操作,这是一种字节流,它的直接父类是( )",{"answer":81,"createTime":82,"id":83,"options":84,"question":89,"source":31,"type":32},[],"2025-06-17 02:22:54",202271192,[85,86,87,88],"字节流","字符流","对象输出流","数据流","在Java语言中,ObjectOutputStream是指( )",{"answer":91,"createTime":82,"id":92,"options":93,"question":97,"source":31,"type":32},[],202271193,[94,95,96,67],"BufferedReader","DatalnputStream","DataOutputStream","在读字符文件Employee.dat时,使用该文件作为参数的类是( )",{"answer":99,"createTime":82,"id":100,"options":101,"question":106,"source":31,"type":32},[],202271195,[102,103,104,105],"File类能够存储文件","File类能够读写文件","File类能够建立文件","File类能够获取文件目录信息","下列叙述中,错误的是"]