单项选择题
单项选择题 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”);
单项选择题 classFoo{publicstaticvoidmain(String[]args){intx=0;inty=4;for(intz=0;z〈3;z++,x++){if(x〉1&++y〈10)y++;}System.out.println(y);}}结果是什么?()
单项选择题 classThread2implementsRunnable{voidrun(){System.out.print("go");}publicstaticvoidmain(String[]args){Thread2t2=newThread2();Threadt=newThread(t2);t.start();}}结果为()
单项选择题 classBeta{publicstaticvoidmain(String[]args){Integerx=newInteger(6)*7;if(x!=42){System.out.print("42");}elseif(x〈newInteger(44-1)){System.out.println("less");}else{System.out.print("done");}}}结果是什么?()A.lessB.42C.doneD.编译失败
单项选择题 classThreadBothextendsThreadimplementsRunnable{publicvoidrun(){System.out.print("hi&q
单项选择题 classNumber{publicstaticvoidmain(String[]args){try{System.out.print(Integer.parseInt("
单项选择题 classGuy{Stringgreet(){return"hi";}}classCowboyextendsGuy{Stringgreet(){return&q