Question: what is instance variable in servlet?
Answer: 2. @hqt: the container creates a unique instance of the servlet, stores it in some global data structure (a map for example), and each time a request comes in, it gets the appropriate servlet (based on the path of the request) from the map, and calls its service method.