1. If we set setMaxInactiveInterval(int interval) to high value,does it mean the user's information will be maintained , after a user exits a browser and reopens the browser again.
2. We can create a
Servlet in 2 ways.By extending GenericServlet or by extendiing HttpServlet.
Since GenericServlet and HttpServlet implement Servlet interface , can we write a servlet as
3. To create a session, we use
What is the difference between HttpServletReuqest.getSession(true) and HttpServletRequest.getSession(false)
4. How do we get a ServletConfig object.Are the following ways correct:
5. How do we get a ServletContext object.Can we use both these ways: