posted 13 years ago
Maybe internally the design would be :
a "Map" with key as "Servlet Class" name and Value as the "instance of the servlet class"...
If the servlet is first time loaded, container searches the map with the servlet class name as a key...
if it does not find, creates a new instance and makes an entry in the Map...
If Servlet class name exists in the Map, it will get the Object binded to the key and uses the same object...
SCJP 6 [SCJP - Old is Gold]