A.ByextendingMouseListener.
B.ByimplementingMouseListener.
C.ByextendingMouseMotionListener.
D.ByimplementingMouseMotionListener.
E.EitherbyextendingMouseMotionListenerorextendingMouseListener.
F.EitherbyimplementingMouseMotionListenerorimplementingMouseListener.
第1题
A.staticclassInnerOne{publicdoublemethoda(){returnd1;}}
B.staticclassInnerOne{staticdoublemethoda(){returnd1;}}
C.privateclassInnerOne{publicdoublemethoda(){returnd1;}}
D.protectedclassInnerOne{staticdoublemethoda(){returnd1;}}
E.publicabstractclassInnerOne{publicabstractdoublemethoda();}
第2题
A.Compilationwillfail.
B.Compilationwillsucceedandtheprogramwillprint“3”
C.CompilationwillsucceedbuttheprogramwillthrowaClassCastExceptionatline6.
D.CompilationwillsucceedbuttheprogramwillthrowaClassCastExceptionatline7.
第3题
A.intia=newint[15];
B.floatfa=newfloat[20];
C.charca=“SomeString”;
D.Objectoa=newfloat[20];
E.Intia=(4,5,6)(1,2,3)
第4题
A.ThrowsException.
B.Catch(Exceptione).
C.ThrowsRuntimeException.
D.Catch(TestExceptione).
E.Nocodeisnecessary.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!