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 advantages of servlets over traditional cgi?
What is called a session?
What is servlet attributes and their scope?
What is Request Dispatcher?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What is the difference between using getSession(true) and getSession(false) methods?
What do you mean by httpservlet?
How forward () method is different from send redirect () method?
What do you mean by cgi and what are its drawbacks?
How can an existing session be invalidated?
What is servlet container. how it works?
What are the advantages of cookies?
Explain the lifecycle of a servlet?
What is servlet in simple terms?
Is servlet a controller?