1.

Which of the following code is used to get an attribute in a HTTP Session object in servlets?(a) session.getAttribute(String name)(b) session.alterAttribute(String name)(c) session.updateAttribute(String name)(d) session.setAttribute(String name)I got this question in homework.I need to ask this question from Servlet in portion Java Server Technologies & Servlet of Java

Answer»

Right CHOICE is (a) SESSION.getAttribute(String name)

Easiest explanation: session has VARIOUS METHODS for use.



Discussion

No Comment Found

Related InterviewSolutions