单项选择题
A.Since the method foo() does not catch the exception generated by the method baz(), it must declare the RuntimeException in its throws clause.
B.A try block cannot be followed by both a catch and a finally block.
C.An empty catch block is not allowed.
D.A catch block cannot follow a finally block.
E.A finally block must always follow one or more catch blocks.
多项选择题 Whichstatementsaretrueconcerningtheeffectofthe>>and>>>operators?()
多项选择题 Giventhefollowingclass,whichstatementscanbeinsertedatposition1withoutcausingthecodetofailcompilation?() publicclassQ6db8{ inta; intb=0; staticintc; publicvoidm(){ intd; inte=0; //Position1 } }
单项选择题 If this source code is contained in a file called SmallProg.java, what command should be used to compile it using the JDK?() public class SmallProg { public static void main(String args[]) { System.out.println("Good luck!"); } }