• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt about mock exam

 
P. Jain
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am referring to java beat mock exam and got confused by a question.

5) Choose the following methods that is used to retrieve the session object from
within the implementation of Tag class?
a. pageContext.getSession()
b. getServletContext().getUserSession()
c. pageContext.getAttribute(PageContext.SESSION)
d. pageContext.getServletContext().getSession()

the answers given is a and c.
but i think the answer is only a. can anyone explain me where i am wrong???
 
Dee Brown
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe you are correct.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic