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

Why filter is used in servlet?

730


What is called servlet container?

830


What does the term localization refer to?

772


What are different methods of session management in servlets?

995


What do you mean by default initialization in java servlet?

842


why we should override only no-agrs init() method.

866


Can servlet have a constructor ?

793


Explain in brief the directory structure of a web application?

781


What's the use of servletcontext?

872


When a servlet accepts a call from a client, it receives two objects. What are they?

975


Explain jsessionid?

792


Is tomcat a servlet container?

774


Servlet is pure java object or not?

912


Differentiate between the get and post method

779


Which interface should be implemented by all servlets?

919