black

SCJP程序员认证考试

登录

单项选择题

//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.

相关考题

单项选择题 public class Foo {   public void main (String args) {   system.out.printIn(“Hello World.”);   }   }   What is the result? ()

单项选择题 1. public class Test {   2. public static void main (String args) {   3. unsigned byte b = 0;   4. b--;   5.   6. }   7. }   What is the value of b at line 5?()

单项选择题 Whatisthenumericalrangeofachar?()

All Rights Reserved 版权所有©财会考试题库(ckkao.com)

备案号:湘ICP备2022003000号-2