can servlet have instance variables?
Answer Posted / debapriya maity
Yeah we surely can provide instance variable,but ur servlet
implements MultithreadModel,its is not the right
approach,better use local varibles ,using SingleThreadModel
approach cause perfomance degradation
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is life cycle of Servlet?
What is Client-Server Computing?
Why is a constructor needed in a servlet even if we use the init method?
How do I use cookies to store session state on the client?
How does Cookies work in Servlets?
What are the steps involved in placing a servlet within a package?
What is the difference between portlet and servlet?
Whats the advantages using servlets over using CGI?
What is load-on-startup in servlet?
Write all the phases defined in servlet life cycle?
Explain the jar and war files in servlet?
What is meant by session? Tell me something about httpsession class?
How printwriter is different from servletoutputstream?
What is the procedure for initializing a servlet?
What is a java servlet?