A.addthiscodeafterline11:list=(List
B.changelines12and13to:list.add
C.changethemethodsignatureonline11to:publicvoidaddStrings(List<extendsString>list){
D.changethemethodsignatureonline11to:publicvoidaddStrings(List<superString>list){
E.Nochangesarenecessary.Thismethodcompileswithoutwarnings.
第1题:
A.Foohasthevalueof“”
B.Foohasthevalueofnull.
C.Foohasthevalueof“blue”
D.Foohasthevalueof“green”
E.Anexceptionisthrown.
F.Thecodewillnotcompile.
第2题:
Click the Exhibit button. Given the fully-qualified class names: com.foo.bar.Dog com.foo.bar.blatz.Book com.bar.Car com.bar.blatz.Sun Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JVM? ()

A.Jar A
B.Jar B
C.Jar C
D.Jar D
E.Jar E
第3题:
Given:fooandbararepublicreferencesavailabletomanyotherthreads.fooreferstoaThreadandbarisanObject.Thethreadfooiscurrentlyexecutingbar.wait().Fromanotherthread,whatprovidesthemostreliablewaytoensurethatfoowillstopexecutingwait()?
A.foo.notify();
B.bar.notify();
C.foo.notifyAll();
D.Thread.notify();
E.bar.notifyAll();
第4题:
A.Bazhasthevalueof0
B.Bazhasthevalueof1
C.Bazhasthevalueof2
D.Anexceptionisthrown.
E.Thecodewillnotcompile.
第5题:

A.publicvoidaddStrings(Listlist){
B.publicvoidaddStrings(List<String>list){
C.publicvoidaddStrings(List<?superString>list){
D.publicvoidaddStrings(List<?extendsString>list){B,C