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
How to upload a file to the server using servlet?
Explain the war file?
What must be implemented by all servlets?
Explain url encoding?
Difference between forward() method and sendredirect() method ?
How to read request headers from servlets?
How can we create deadlock situation in servlet?
How do I use cookies to store session state on the client?
What is meant by a web application
Can you send an authentication error from a servlet?
Tell us something about servletconfig interface.
What is servlet mapping?
What is the advantage of Servlets when compared with other server side technologies?
Write the code to get the server information in servlet.
What are the life cycle methods of the servlet?