can servlet have instance variables?

Answer Posted / neeraj

Ravikiran.chd

If we implement single thread model then how servlet will
handle multiple request at a time??

So its better to avoid the use of instance variable.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you deal property files in servlet?

594


What are life cycle methods of a servlet?

583


Which interface should be implemented by all servlets?

694


Which event is fired at the time of setting, getting or removing attribute from application scope?

603


What is the life cycle of a servlet?

775






Explain web container.

562


What is the life-cycle of servlets?

629


What are different ways for servlet authentication?

558


What is the GenericServlet class?

594


How does tomcat servlet container work?

585


How the typical servlet code look like ?

631


What is the directory structure of web application?

522


How the servlet is loaded?

595


What is a generic servlet?

515


What do you mean by url pattern in servlet?

619