相关考题

单项选择题 GiventhisfragmentfromaJavaEEdeploymentdescriptor:341.<error-page>342.<exception-type>java.lang.Throwable</exception-type>343.<location>/mainError.jsp</location>344.</error-page>345.<error-page>346.<exception-type>java.lang.ClassCastException</exception-type>347.<location>/castError.jsp</location>348.</error-page>IfthewebapplicationassociatedwiththefragmentabovethrowsaClassCastException.Whichstatementistrue?()A.Thedeploymentdescriptorisinvalid.B.ThecontainerinvokesmainError.jsp.C.ThecontainerinvokescastError.jsp.D.NeithermainError.jspnorcastError.jspisinvoked.

单项选择题 Giventhefollowingsixmethodnames:(1)addListener(2)addMouseListener(3)setMouseListener(4)deleteMouseListener(5)removeMouseListener(6)registerMouseListenerHowmanyofthesemethodnamesfollowJavaBeanListenernamingrules?()A.1B.2C.3D.4E.5

判断题 购买保险是一种回避风险的应对策略。()

单项选择题 Whichelementofawebapplicationdeploymentdescriptorelementisrequired?()

单项选择题 Whichisthe true choiceaboutthewebcontainerrequestprocessingmodel()?

单项选择题 Whichpath,relativetoawebapplication’sroot,identifiesthewebapplication’sdeploymentdescriptor?()

单项选择题 Whichthe JSTLcodesnippetcanbeusedtoimportcontentfromanotherwebresource?()

单项选择题 JavaSEJDK中类库java.text的用途是哪项?()

单项选择题 Given:10.publicvoidservice(ServletRequestrequest,11.ServletResponseresponse){12.ServletInputStreamsis=13.//insertcodehere14.}Whichretrievesthebinaryinputstreamonline13?()

单项选择题 Whichelementofthewebapplicationdeploymentdescriptordefinestheservletclassassociatedwithaservletinstance?()

单项选择题 AssumeaJavaBeancom.example.GradedTestBeanexistsandhastwoattributes.Theattributenameisoftypejava.lang.Stringandtheattributescoreisoftypejava.lang.Integer.Anarrayofcom.example.GradedTestBeanobjectsisexposedtothepageinarequest-scopedattributecalledresults.Additionally,anemptyjava.util.HashMapcalledresultMapisplacedinthepagescope.AJSPpageneedstoaddthefirstentryinresultstoresultMap,storingthenameattributeofthebeanasthekeyandthescoreattributeofthebeanasthevalue.WhichcodesnippetofJSTLcodesatisfiesthisrequirement?()

单项选择题 Inyourwebapplication,youneedtoexecuteablockofcodewheneverthesessionobjectisfirstcreated.Whichdesignwillaccomplishthisgoal?()

单项选择题 InaJSP-centricwebapplication,youneedtocreateacatalogbrowsingJSPpage.ThecatalogisstoredasaListobjectinthecatalogattributeofthewebapp’sServletContextobject.Whichscriptletcodesnippetgivesyouaccesstothecatalogobject?()A.<%Listcatalog=config.getAttribute("catalog");%>B.<%Listcatalog=context.getAttribute("catalog");%>C.<%Listcatalog=application.getAttribute("catalog");%>D.<%Listcatalog=servletContext.getAttribute("catalog");%>

单项选择题 AdeveloperwantstoouseELtoinvokea.Whichisalwaystrue?()

单项选择题 Adeveloperhasusedthiscodewithinaservlet:62.if(request.isUserInRole("vip")){63.//VIP-relatedlogichere64.}Whatelsemustthedeveloperdotoensurethattheintendedsecuritygoalisachieved?()

单项选择题 classMyApp{publicstaticvoidmain(String[]args){intage;System.out.println(age=”+age);}}执行上述代码后输出的结果是哪项?()

未知题型 由于小区空闲模式覆盖区与激活模式覆盖区不相等将会出现下列哪些现象?(ACD.A.小区的内切数与外切数出现明显的差别。B.如果空闲模式覆盖区小时会出现外切数增加。C.如果空闲模式覆盖区大时,该小区的呼叫建立数将会较大。D.如果空闲模式覆盖区大时会出现外切数增加。

单项选择题 classBeta{publicstaticvoidmain(String[]args){Integerx=newInteger(6)*7;if(x!=42){System.out.print("42");}elseif(x.equals(42)){System.out.print("dot=");}else{System.out.print("done");}}}结果为:()A.42B.doneC.dot=D.编译失败

单项选择题 classCarimplementsSerializable{}classFordextendsCar{}如果试图序列化一个Ford实例,结果为()

单项选择题 下述代码执行后,可以被垃圾收集器收集的对象是哪一个()Studentstua;stua=newStudent(Mike”);Studentstub;stub=stua;stua=newStudent(Jack”);