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

What is the dispatcher servlet?

516


I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?

2237


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

568


What is the element?

590


What is servlet collaboration?

664






What are advantages of servlets over cgi?

632


What is the importance of init() method in Servlet ?

593


What’s the difference between forward() and sendredirect() methods?

575


What do you mean by the servlet chaining?

549


Write a program to show the functionality of doget and dopost method?

656


What is java servlet session?

529


What’s the difference between sendredirect and forward methods

565


How are filters?

583


Why servlet is mostly used?

746


Is servlet synchronized?

605