多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

//point X   public class foo {  public static void main (Stringargs) 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
答案解析:
进入题库查看解析

微信扫一扫手机做题