Home » JAVA Programming » Java Basic » Question
  1. Which of the following code is used to get an attribute in a HTTP Session object in servlets?
    1. session.setAttribute(String name)
    2. session.updateAttribute(String name)
    3. session.alterAttribute(String name)
    4. session.getAttribute(String name)
    5. None of these
Correct Option: D

session has various methods for use.



Your comments will be displayed only after manual approval.