多项选择题
A Company.com developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in a thread-safe manner.
Which two can support this design goal?()
A. Store the data in a local 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.
相关考题
-
单项选择题
WhichHttpSessionmethodstoresanobjectinasession?()
A. put(String name. Object value)
B. set(String name. Object value)
C. setAttribute(String name. Object value)
D. putAttribute(String name. Object value)
E. addAttribute(String name. Object value) -
单项选择题
Whichelementistheparentofthetaginthewebapplicationdeploymentdescriptor?()
A. <web-app>
B. <filters>
C. <servlet>
D. <filter-list> -
单项选择题
Which retrieves the value associated with “foo” from within an HttpServlet?()
A. String value = getServletConfig( ).getParameter(“foo”);
B. String value = getServletContext( ).getAttribute(“foo”);
C. Object value = getServletContext( ).getInitParameter(“foo”);
D. String value = getServletContext( ).getInitParameter(“foo”)
