题海让大学四年没有难题
白天模式登陆

题目详情

单选题 请阅读下面的程序 public class Demo { public static void main(String[] args) throws Exception { FileOutputStream fos = new FileOutputStream("aa.txt",true); fos.write("我爱代码".getBytes()); fos.close(); }} 假设项目根目录下有aa.txt,文本内容为"我是程序员",请问执行上面程序执行后aa.txt里面的内容是( )

A. 我是程序员我爱代码

B. 我爱代码

C. 我是程序员

D. 乱码

学科:Java高级程序设计

时间:2025-12-09 02:59:01

Copyright © 2022 津ICP备2021001502号