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
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?
What is Servlet API used for connecting database?
What are different methods of session management in servlets?
What is session?
What is SingleThreadModel interface?
Explain the difference between a web server and a web container?
What do you mean by default initialization in java servlet?
What is java servlet?
What is servlet api used for conneting database?
What is the difference between servlet and jsp?
What is the purpose of inter-servlet communication?
What’s the difference between forward() and sendredirect() methods?
Explain web application directory arrangement?
What do you mean by servlet?
Which application server is best for java?