试题详情

在Java中,阅读下列文件定入的Java代码,共有( )处错误 import java.io.*; public class TestIO { public static void main(String []args){ String str ="文件写入练习"; FileWriter fw = null; //1 try{ fw = new FileWriter("c:\mytext.txt"); //2 fw.writerToEnd(str); //3 }catch(IOException ex){ ex.printStackTrace(); } } }

A0

B1

C2

D3