多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

What writes the text “ ” to the end of the file “file.txt”?()

  • A、 OutputStream out= new FileOutputStream (“file.txt”);       Out.writeBytes (“ /n”);
  • B、 OutputStream os= new FileOutputStream (“file.txt”, true);       DataOutputStream out = new DataOutputStream(os);  out.writeBytes (“ /n”);
  • C、 OutputStream os= new FileOutputStream (“file.txt”);       DataOutputStream out = new DataOutputStream(os);  out.writeBytes (“ /n”);
  • D、 OutputStream os= new OutputStream (“file.txt”, true);     DataOutputStream out = new DataOutputStream(os);  out.writeBytes (“ /n”);
正确答案:B
答案解析:
进入题库查看解析

微信扫一扫手机做题