Servlets Interview Questions and Answers For Freshers Part-5
41.How to create a session in servlet? You would get HttpSession object by calling the public method getSession() of HttpServletRequest, as below: // Create a session object if it is already not created. HttpSession session = request.getSession();
Read More