black

SCJP程序员认证考试

登录

单项选择题

// Point X 
public class foo { 
public static void main(String[] args) throws Exception { 
jave.io.PrintWriter out = new jave.io.PrintWriter( 
new jave.io.OutputStreamWriter(System.out), true);
out.println(“Hello”);
} 
}  
Which statement at Point X on line 1 is required to allow this code to compile?()  

A. No statement is required.
B. import jave.io.*;
C. include java.io.*;
D. import jave.io.PrintWriter;
E. include java.io.PrintWriter;

相关考题

多项选择题 ArraryList a = new ArrayList();  a.add(“Alpha”);  a.add(“Bravo”):  a.add(“Charlie”);  a.add(“Delta”);  Iterator iter = a.iterator(); Which two, added at line 17, print the names in the ArrayList in alphabetical order?()

单项选择题 Whatcancauseathreadtobecomenon-runnable?()

单项选择题 public class A extends Thread {  A() {  setDaemon(true);  }  public void run() {  (new B()).start();  try {  Thread.sleep(60000);  } catch (InterruptedException x) {}  System.out.println(“A done”);  }  class B extends Thread {  public void run() {  try {  Thread.sleep(60000);  } catch (InterruptedException x) {}  System.out.println(“B done”);  }  }  public static void main(String[] args) {  (new A()).start();  }  }   What is the result?()

All Rights Reserved 版权所有©建筑考试题库(jzkao.com)

备案号:湘ICP备2020024380号-3