black

SCJP程序员认证考试

登录

单项选择题

//point X 
public class foo ( 
public static void main (String[]args) throws Exception { 
printWriter out = new 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.PrintWriter;
B. Include java.io.PrintWriter;
C. Import java.io.OutputStreamWriter;
D. Include java.io.OutputStreamWriter;
E. No statement is needed.

相关考题

单项选择题 1. interface foo {  2. int k = 0;  3. } 4.    5. public class test implements Foo (  6. public static void main(String args[]) (  7. int i;  8. Test test = new test ();  9. i= test.k;  10.i= Test.k;  11.i= Foo.k;  12.)  13.)  14.        What is the result?()

单项选择题 1. public class enclosingone (  2. public class insideone{}  3. )  4. public class inertest(  5. public static void main (string[]args)(  6. enclosingone eo= new enclosingone ();  7. //insert code here  8. )  9. )    Which statement at line 7 constructs an instance of the inner class?()

单项选择题 package foo; public class Outer (  public static class Inner (  )  )   Which statement is true? ()

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

备案号:湘ICP备2020024380号-3