webcontainer create an object for servlet class.for createing an object use the newInstance() method.this object automaticaly create a defaultconstructor so we can not create parametarised constructior for this object.praveen kumar sakhamudi
constructor makes a simple object, when the container call init() on this simple object, now the simple object has become servlet which can serve the request.
webcontainer create an object for servlet class.for createing an object use the newInstance() method.this object automaticaly create a defaultconstructor so we can not create parametarised constructior for this object.praveen kumar sakhamudi
constructor makes a simple object, when the container call init() on this simple object, now the simple object has become servlet which can serve the request.