Given that req is an HTTPServletRequest object which of the following creates a session if one does not exist ? (Choose all that apply)

  1. req.getSession()

  2. req.getSession(true)

  3. req.getSession(false)

  4. req.createSession()

  5. req.createSession(true)

  6. req.createSession(false)


Correct Option: A,B

Find more quizzes: