A.Anexceptionisthrown.
B.Thecodewillnotcompile.
C.Theprogramprints“null”
D.Theprogramprints“blue”
E.Theprogramprints“green”
第1题:
A.Anexceptionisthrown.
B.Thecodewillnotcompile.
C.Theprogramprints“null”
D.Theprogramprints“blue”
E.Theprogramprints“green”
第2题:
A.Foohasthevalueof“”
B.Foohasthevalueofnull.
C.Foohasthevalueof“blue”
D.Foohasthevalueof“green”
E.Anexceptionisthrown.
F.Thecodewillnotcompile.
第3题:
A.Bazhasthevalueof“”
B.Bazhasthevalueofnull
C.Bazhasthevalueof“red”
D.Bazhasthevalueof“blue”
E.Baxhasthevalueof“green”
F.Theprogramthrowsanexception.
第4题:
A.Compilationwillfail.
B.Compilationwillsucceedandtheprogramwillprint“3”
C.CompilationwillsucceedbuttheprogramwillthrowaClassCastExceptionatline6.
D.CompilationwillsucceedbuttheprogramwillthrowaClassCastExceptionatline7.
第5题:
A.JavaTest2222
B.JavaTest1234
C.JavaTest4242
D.JavaTest4321