单项选择题
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.
