单项选择题classsuper(publicintI=0;publicsuper(stringtext)(I=1))publicclasssubextendssuper(publicsub(stringtext)(i=2)publicstaticvoidmain(straingargs)(subsub=newsub(Hello”);system.out.PrintIn(sub.i);))Whatistheresult?()A.Compilationwillfail.B.Compilationwillsucceedandtheprogramwillprint“0”C.Compilationwillsucceedandtheprogramwillprint“1”D.Compilationwillsucceedandtheprogramwillprint“2”
单项选择题GiventheActionEvent,whichmethodallowsyoutoidentifytheaffectedcomponent?()
单项选择题1.classExc0extendsException{}2.classExc1extendsExc0{}3.publicclassTest{4.publicstaticvoidmain(Stringargs[]){5.try{6.thrownewExc1();7.}catch(Exc0e0){8.System.out.println(Ex0caught”);9.}catch(Exceptione){10.System.out.println(exceptioncaught”);11.}12.}13.}Whatistheresult?()A.Ex0caughtB.exceptioncaughtC.Compilationfailsbecauseofanerroratline2.D.Compilationfailsbecauseofanerroratline6.
单项选择题AnapplicationconnectstoaSQLAzuredatabase.TheapplicationoccasionallylosestheconnectiontotheSQLAzuredatabase.Youneedtorecommendanapproachforreliablycompletingdataaccessoperations.Whatshouldyourecommend?()A.UseMicrosoftADO.NETconnectionpooling.B.Passexceptionstotheuserinterfacelayer.C.Implementaretrypolicyinthedataaccesslayer.D.Beginatransactionbeforeeachdataaccessoperation.
单项选择题YouaredesigningaWindowsAzuresolution.Thesolutionwillbeusedbymultiplecustomers.Eachcustomerhasdifferentbusinesslogicanduserinterfacerequirements.Notallcustomersusethesameversionofthe.NETruntime.Youneedtorecommendadeploymentstrategy.Whatshouldyourecommend?()A.Deployinamultitenantconfiguration.B.Deployinasingle-tenantconfiguration.C.Deploywithmultiplewebroleinstances.D.Deploywith multipleworkerroleinstances.