Which is the correct web application deployment descriptor element for defining a servlet initialization parameter?()
A.A B.B C.C D.D
单项选择题ServletAreceivesarequestthatitforwardstoservletBwithinanotherwebapplicationinthesamewebcontainer.ServletAneedstosharedatawithservletBandthatdatamustnotbevisibletootherservletsinA’swebapplication.InwhichobjectcanthedatathatAshareswithBbestored?()
A. HttpSession B. ServletConfig C. ServletContext D. HttpServletRequest E. HttpServletResponse
多项选择题Forwhichthreeeventscanwebapplicationeventlistenersberegistered?()
A. when a session is created B. after a servlet is destroyed C. when a session has timed out D. when a cookie has been created E. when a servlet has forwarded a request F. when a session attribute value is changed
多项选择题AdeveloperchoosestoavoidusingSingleThreadModelbutwantstoensurethatdataisupdatedinathread-safemanner.Whichtwocansupportthisdesigngoal?()
A. Store the data in a vocal variable. B. Store the data in an instance variable. C. Store the data in the HttpSession object. D. Store the data in the ServletContext object. E. Store the data in the ServletRequest object.
多项选择题ARequestDispatchercanbeobtainedfromwhichtwoobjects?()
A. ServletConfig B. ServletContext C. HttpServletRequest D. HttpServletResponse
多项选择题Inwhichtwolocationscanlibrarydependenciesbedefinedforawebapplication?()
A. the web application deployment descriptor B. the /META-INF/dependencies.xml file C. the /META-INF/MANIFEST.MF manifest file D. the /META-INF/MANIFEST.MF manifest of a JAR in the web application classpath