单项选择题

A.Theprogramrunsandprintsnothing.
B.Theprogramrunsandprints“Finally”.
C.Thecodecomiles.Butanexceptionisthrownatruntime.
D.Thecodewillnotcompilebecausethecatchblockismissing.
相关考题

单项选择题 Whatisthenumericalrangeofchar?()

单项选择题 Whichmechanismrequirestheclienttoprovideitspublickeycertificate?()

单项选择题 WhichretrievesallcookiessentinagivenHttpSErvletRequestrequest?()

单项选择题 WhichHTTPmethodhasthecharacteristicthatmultipleindentialrequestsmayproducesideeffectbeyondthoseofasinglerequest()?

单项选择题 Everypageofyourwebsitemustincludeacommonsetofnavigationmenusatthetopofthepage.ThismenuisstaticHTMLandchangesfrequently,soyouhavedecidedtouseJSP’sstaticimportmechanism.WhichJSPcodesnippetaccomplishesthisgoal?()A.<%@importfile=’/common/menu.html’%>B.<%@pageimport=’/common/menu.html’%>C.<%@importpage=’/common/menu.html’%>D.<%@includefile=’/common/menu.html’%>E.<%@pageinclude=’/common/menu.html’%>

单项选择题 Adeveloperisdesigningthepresentationtierforawebapplicationwhichrequiresacentralizedrequesthandlingtocompletecommonprocessingrequiredbyeachrequest.Whichdesignpatternprovidesasolutiontothisproblem?()

单项选择题 YouhaveasimplewebapplicationthathasasingleFrontControllerservletthatdispatchestoJSPstogenerateavarietyofviews.Severaloftheseviewsrequirefurtherdatabaseprocessingtoretrievethe necessaryorderobjectusingtheorderIDrequestparameter.Todothisadditionalprocessing,youpasstherequestfirsttoaservletthatismappedtotheURLpattern/WEBINF/retreiveOrder.dointhedeploymentdescriptor.Thisservlettakestworequestparameters,theorderIDandthejspURL.IthandlesthedatabasecallstoretrieveandbuildthecomplexorderobjectsandthenitdispatchestothejspURL.WhichcodesnippetintheFrontControllerservletdispatchestherequesttotheorderretrievalservlet?()

单项选择题 Adeveloperisdesigningawebapplicationthatmakesmanyfine-grainedremotedatarequestsforeachclientrequest.Duringtesting,thedeveloperdiscoversthatthevolumeofremoterequestssignificantlydegradesperformanceoftheapplication.Whichdesignpatternprovidesasolutionforthisproblem?()A.FlyweightB.TransferObjectC.ServiceLocatorD.DispatcherViewE.BusinessDelegateF.Model-View-Controller

单项选择题 Giventhewebapplicationdeploymentdescriptorelements:11.<filter>12.<filter-name>ParamAdder</filter-name>13.<filter-class>com.example.ParamAdder</filter-class>14.</filter>...24.<filter-mapping>25.<filter-name>ParamAdder</filter-name>26.<servlet-name>MyServlet</servlet-name>27.<!--insertelementhere-->28.</filter-mapping>Whichelement,insertedatline27,causestheParamAdderfiltertobeappliedwhenMyServletisinvokedbyanotherservletusingtheRequestDispatcher.includemethod?()A.<include/>B.<dispatcher>INCLUDE</dispatcher>C.<dispatcher>include</dispatcher>D.<filter-condition>INCLUDE</filter-condition>E.<filter-condition>include</filter-condition>

单项选择题 Youhaveausecaseinyourwebapplicationthataddsseveralsession-scopedattributes.Attheendoftheusecase,oneoftheseobjects,themanagerattribute,isremovedandthenitneedstodecidewhichoftheothersession-scopedattributestoremove.Howcanthisgoalbeaccomplished?()A.TheobjectofthemanagerattributeshouldimplementtheHttpSessionBindingListeneranditshouldcall theremoveAttributemethodontheappropriatesessionattributes.B.TheobjectofthemanagerattributeshouldimplementtheHttpSessionListeneranditshouldcallthe removeAttributemethodontheappropriatesessionattributes.C.TheobjectofthemanagerattributeshouldimplementtheHttpSessionBindingListeneranditshouldcall thedeleteAttributemethodontheappropriatesessionattributes.D.TheobjectofthemanagerattributeshouldimplementtheHttpSessionListeneranditshouldcallthe deleteAttributemethodontheappropriatesessionattributes.

单项选择题 Ashoot-outhaseruptedbetweenyourMSdevelopmentteamsusing.NETandyourLinuxdevelopmentteamsusingJava.Knowingthatyourdatabaseisindanger,whichcommandwouldyouusetobackupyourNOARCHIVELOGmodedatabaseusingRMANwithcompression?()A.backupdatabaseallB.backupcompresseddatabaseC.backupascompressedbackupsetdatabaseD.backupascompressedbackupdatabaseplusarchivelogallE.backupascompressedbackupsetdatabasepluscompressarchivelogall

单项选择题 TheUNDO_RETENTIONparameterinyourdatabaseissetto1000andundoretentionisnotguaranteed.Whichstatementregardingretentionofundodataiscorrect?()

单项选择题 InaJavaEEmessagingapplication,oneMDBisconsumingalotofmemoryathightraffic.Whatconfigurationshouldyouusetopreventpossibleout-of-memoryerrorathightrafficandatthesametimenotlosingmessages?()

单项选择题 YouaremaintainingyourdatabaseinOracle10g.Whileperforminganincrementalbackupofthedatabase,youwanttobackuponlythoseblocksthathavechangedsincethelastbackup.Whichfilewillyoucreatetoincreasetheperformanceofthebackupoperationwhileperformingtheincrementalbackupofthedatabase?()A.redologfilesB.passwordfileC.controlfileD.changetrackingfile

单项选择题 Atdatabasestartup,youdiscoverthatoneofthediskscontaininganindextablespacehasbeenlostduetoamediafailure.Abackupofthelostindextablespaceisnotavailable.Youhaveallthenecessaryscriptstorecreatetheindexes.Youneedtore-createtheindexesinanewindextablespace.Whichactionmustyouperformbeforere-creatingtheindexes?()A.StartthedatabaseinOPENmode,andcreateanewindextablespace.B.StartthedatabaseinOPENmode,anddropthelostindextablespacefromthedatabase.C.StartthedatabaseinMOUNTmode,createanewindextablespace,anddropthelostindextablespacefromthedatabase.D.StartthedatabaseinMOUNTmode,dropthelostindextablespacefromthedatabase,openthedatabase,andcreateanewindextablespace.

单项选择题 YoucanbackuptheRMANrecoverycatalogwithRMAN.()

单项选择题 Asnapshotofthe/export/projectfilesystemhasbeentaken.Priortobackingupthefilesystem,youneedtochecktoseeifcertainfilesareonthesnapshot.Thesnapshotneedstobemountedtocheckforthesefiles.Whichcommandwillmountthesnapshot?()A.mount-Fufs-oro/dev/fssnap/0/checkB.mount-Fufs-orw/dev/fssnap/0/checkC.mount-Fufs-oro/export/project/checkD.mount-Fufs-orw/export/project/check

单项选择题 YouhaveconfiguredOMFinyourdatabase.YouenabledtheALTERDATABASEENABLEBLOCKCHANGETRACKING;statementtoenabletheblockchangetrackingfeature.Whatinformationwillbewritteninthechangetrackingfile?()

单项选择题 Inwhichscenario,willyouissuethefollowingcommand?()RMAN>REPORTNEEDBACKUPDAYS7;

单项选择题 WhichofthefollowingRMANstructurescandatafromadatafilespan?()