can servlet have instance variables?

Answer Posted / ramana

it is not recomended to use instance variables in servlet...if necessary use static variables..

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the type of method for sending request from http server?

606


What is a servlet engine?

554


Why the container loads server at the application startup and how?

589


Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

784


What is life cycle of Servlet?

615






What is servlet in tomcat?

571


What is meant by servlet? What are the parameters of the service method?

590


What is a servlet?

614


What is the difference between Servlets and Applets?

553


What's the servlet interface?

604


Is java servlet still used?

603


What are the phases of servlet life cycle?

616


Can we use the constructor, instead of init(), to initialize servlet?

595


What are the life-cycle methods for a servlet?

564


What do you mean by web applications?

641