by Dinesh Thakur Category: introduction to Servlet

When four requests are given to a Servlet program.

a) The Servlet container creates one object of that Servlet class.

b) Servlet container starts 4 threads on that object representing 4 requests on per request basis.

c) Servlet container creates 4 sets of request, response objects on one set per each request. (if any change is occur recompile, reload.)

                     Multiple Request

Every thread can be identified through its “thread name”. Every object can be identified with its unique number called “Hashcode”. To get the Hashcode of any object call Hashcode() of an that object.

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.



Search Content