试题详情
单项选择题 //point X  public class foo { public static void main (String[]args) throws Exception {  java.io.printWriter out = new java.io.PrintWriter {  new java.io.outputStreamWriter (System.out), true;  out.printIn(“Hello”); }  }  }   Which statement at PointX on line 1 allows this code to compile and run?()  

A、 Import java.io.*;

B、 Include java.io.*;

C、 Import java.io.PrintWriter;

D、 Include java.io.PrintWriter;

E、 No statement is needed.

  • E
  • 关注下方微信公众号,在线模考后查看

热门试题