I have a
servlet with following service method.
Inside service method i have instantiated the class A and class B. Hence the objects would be created on heap.
Servlet in general are Multi threaded. So if around 100 concurrent users access this servlet, would there be 100 objects on heap.
Please let me know if my analysis is correct. How to write better program in this scenario.
Please suggest.