|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#72. Given: 11. public class Acc1 extends HttpServley implements SingleThreadModel { 14. public void doPost(HttpServletRequest req, HttpServletResponse resp) { 16. HttpSession session = req.getSession(): 17. } 18. }
Which three variables reference objects that are thread-safe? (Choose three)
Show comments for this question (0)
Add comments
Link to this question
|
|
#75. You are developing a Web application to provide inventory management for a wine store. The application will require an Inventory class, to manage the whole store inventory, and an InventoryItems class, to represent the specific information about an item in the inventory. The InventoryItem class has the following goals: • The information is an InventoryItem object is immutable. • The inventory data is stored in a remote server. • The InventoryItem will be referenced multiple times in the same JSP. Which design pattern matches the goals of the InventoryItem class?
Show comments for this question (0)
Add comments
Link to this question
|
|
#80. Given: 1. public class ServletExamsheets extends HttpServlet { 2. public void doGet(HttpServletRequest request, 3. HttpServletResponse response) 5. { 6. try { 9. String message = “Caught exception”; 10. 11. } 12. } 13. }
Which two, inserted individually at line 10, will place a descriptive message and the stack trace of the caught exception in the servlet log file? (Choose two)
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.166
|
Server date 05:38 10-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|