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 are the steps that are required to handle the multi-threading?
What is the inter-servlet communication?
What are the key methods that are involved in processing of http servlets?
How to rectify errors in java servlet while compilation?
Elucidate servlet attributes and its scope?
What are all the advantages of servlet over cgi?
How is a servlet implemented in code?
What is the difference between sendredirect() and forward() in a servlet?
Which java application server is the best?
What is the difference between genericservlet and httpservlet
What is meant by session? Tell me something about httpsession class?
What is webservlet?
What is the advantage of Servlets when compared with other server side technologies?
What is servlet container?
How does java thread pool work?