经典指数          
原因
3424
浏览数
0
收藏数
 

以下程序段执行后将有()个字节被写入到文件afile.txt中。
try {
    FileOutputStream fos = new FileOutputStream("afile.txt");
    DataOutputStream dos = new DataOutputStream(fos);
    dos.writeInt(3);
    dos.writeChar(1);
    dos.close();
    fos.close();
} catch (IOException e) {}

  • 3
  • 5
  • 6
  • 不确定,与软硬件环境相关

     举报   纠错  
 
切换
1 个答案

C int 4 char 1 然后加上结束符 1 就是6

 
切换
撰写答案