Which of the following statements are true about KisMAC?
The getSession() method of the HttpServletRequest interface returns the current session associated with the request, or creates a new
session if no session exists. The method has two syntaxes as follows:
public HttpSession getSession(): This method creates a new session if it does not exist.
public HttpSession getSession(boolean create): This method becomes similar to the above method if create is true, and returns the
current session if create is false. It returns null if no session exists.
Answer B is incorrect. The getSession(false) method returns a pre-existing session. It returns null if the
client has no session
associated with it.
Answer A and E are incorrect. There is no such method as getNewSession() in Java.
Jeffrey
3 months agoKarl
3 months agoLino
1 months agoLenora
2 months agoDelpha
2 months agoFreeman
3 months agoRashida
2 months agoLoreta
2 months agoRodolfo
2 months agoKiera
2 months agoShaun
2 months agoAracelis
3 months agoNickolas
3 months agoEzekiel
4 months agoPa
2 months agoCordell
2 months agoAnnice
3 months agoChara
3 months agoJules
3 months agoMy
4 months agoFelton
3 months agoNettie
3 months agoAnnamae
3 months agoJodi
4 months agoAlaine
4 months agoCaren
4 months ago