分析如下Java代码,有标注的四行代码中,有错误的是第( )处? A: port java.io.FileWriter; B: port java.io.IOException; C: blic class Test { D: blic static void main(String[ ] args) { E: ring str = "Hello World"; F: leWriter fw = null; G: y { H: = new FileWriter("c:\\hello.txt"); // 1 I: .write(str); // 2 J: catch (IOException e) { K: printStackTrace(); // 3 L: finally {
分析如下Java代码,有标注的四行代码中,有错误的是第( )处? A: port java.io.FileWriter; B: port java.io.IOException; C: blic class Test { D: blic static void main(String[ ] args) { E: ring str = "Hello World"; F: leWriter fw = null; G: y { H: = new FileWriter("c:\\hello.txt"); // 1 I: .write(str); // 2 J: catch (IOException e) { K: printStackTrace(); // 3 L: finally {
1