单项选择题
A. 0
B. null
C. Compilation fails.
D. A NullPointerException is thrown at runtime.
E. An ArrayIndexOutOfBoundsException is thrown at runtime.
多项选择题 Whichtwoarevaliddeclarationsofafloat?()
单项选择题 // 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?()
多项选择题 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?()