A.Allthreefilesaredirectlyaccessible.
B.OnlyFile1.htmlisdirectlyaccessible.
C.OnlyFile2.htmlisdirectlyaccessible.
D.OnlyFile3.htmlisdirectlyaccessible.
第1题
A./WEB-INF/libasaJARfile
B./META-INF/libasaJARfile
C./classesascompiledclassfiles
D./WEB-INF/libascompiledclassfiles
E./WEB-INF/classesascompiledclassfiles
F./META-INF/classesascompiledclassfiles
第2题
homeinterfaceofcom.example.AccountHomeandaJNDIreferenceofejb/Account.WhichmakesthelocalEJBcomponentaccessibletothewebcomponentsinthewebapplicationdeploymentdescriptor?()
A.A
B.B
C.C
D.D
第3题
ahomeinterfaceofcom.example.AccountHomeandaJNDIreferenceofejb/Account.WhichmakesthelocalEJBcomponentaccessibletothewebcomponentsinthewebapplicationdeploymentdescriptor?()
A.
B.
C.
D.
第4题
youwanttoclearoutthissetofattributesfromthesessionobject.Assumethatthisstaticvariableholdsthissetofattributenames:201.privatestaticfinalSetUSE_CASE_ATTRS;202.static{203.USE_CASE_ATTRS.add("customerOID");204.USE_CASE_ATTRS.add("custMgrBean");205.USE_CASE_ATTRS.add("orderOID");206.USE_CASE_ATTRS.add("orderMgrBean");207.}Whichcodesnippetdeletestheseattributesfromthesessionobject?()
A.session.removeAll(USE_CASE_ATTRS);
B.for(Stringattr:USE_CASE_ATTRS){session.remove(attr);}
C.for(Stringattr:USE_CASE_ATTRS){session.removeAttribute(attr);}
D.for(Stringattr:USE_CASE_ATTRS){session.deleteAttribute(attr);}
E.session.deleteAllAttributes(USE_CASE_ATTRS);
第5题
23.//insertcodehere24.Stringname=(String)session.getAttribute("name");Whichthreecanbeplacedatline23toretrieveanexistingHttpSessionobject?()
A.HttpSessionsession=request.getSession();
B.HttpSessionsession=request.getSession(id);
C.HttpSessionsession=request.getSession(true);
D.HttpSessionsession=request.getSession(false);
E.HttpSessionsession=request.getSession("jsessionid");
第6题
A.A
B.B
C.C
D.D
第7题
A.floatTsquare=session.getFloatAttribute("Tsquare");
B.floatTsquare=(Float)session.getAttribute("Tsquare");
C.floatTsquare=(float)session.getNumericAttribute("Tsquare");
D.floatTsquare=((Float)session.getAttribute.("Tsquare")).floatValue();
E.floatTsquare=((Float)session.getFloatAttribute.("Tsquare")).floatValue;
第8题
A.sessionconfiguration
B.MIMEtypemappings
C.contextrootfortheapplication
D.servletinstancepoolconfiguration
E.webcontainerdefaultportbindings
F.ServletContextinitializationparameters
第10题
A.thewebapplicationdeploymentdescriptor
B.the/META-INF/dependencies.xmlfile
C.the/META-INF/MANIFEST.MFmanifestfile
D.the/META-INF/MANIFEST.MFmanifestofaJARinthewebapplicationclasspath
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!