【单选题】Given: public class Test { public static void main (String args[]) { class Foo { public int i = 3; } Object o = (Object) new Foo(); Foo foo = (Foo)o; System.out.println(foo.i); } } What is the result?
A.
Compilation will fail.
B.
Compilation will succeed and the program will print “3”
C.
Compilation will succeed but the program will throw a ClassCastException at line 6.
D.
Compilation will succeed but the program will throw a ClassCastException at line 7.
【单选题】Given: What is the result?()
A.
An exception is thrown at runtime.
【单选题】Listen to a lecture about Internet Use in Britain and take notes. Use your notes to complete the statements below. Circle A, B or C III.NGeneration InUsers5m38s.mp3: The next generation users create c...
【单选题】________ your report, what is most important to protect our environment ?
【单选题】People who often stay up late are _________ to suffer from heart attacks than those who are not.
【单选题】What is the result?()
D.
An exception is thrown at runtime.