试题详情

在Java中,创建一个向文件"file.txt"追加内容的输出流对象的语句有

AOutputStream out=new FileOutputStream("file.txt");

BOutputStream out=new FileOutputStream("file.txt", "append");

CFileOutputStream out=new FileOutputStream("file.txt", true);

DFileOutputStream out=new FileOutputStream(new File("file.txt"));