Hoàng Minh An
New member
What is context in Java?
Answer
A Context represents your environment. It represents the state surrounding where you are in your system. For example, in web programming in Java, you have a Request, and a Response. These are passed to the service method of a Servlet. … So, the ServletContext represents the servlets environment within its container.
Answer
A Context represents your environment. It represents the state surrounding where you are in your system. For example, in web programming in Java, you have a Request, and a Response. These are passed to the service method of a Servlet. … So, the ServletContext represents the servlets environment within its container.