can servlet have instance variables?
Answer Posted / rajashree
The servlet you write can be used simulataneously by many
users at the same time and each user of the servlet has a
thread. Consider the user and the session one and the same.
Avoid instance variables. An instance variable is any
object owned by a a class. There will be only one of these
per class - not one per user. In general, you can not have
a user modify an instance variable because other users are
also using the same variable.
Is This Answer Correct ? | 35 Yes | 5 No |
Post New Answer View All Answers
Why do we need servlet filter?
Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com
What is servlet in tomcat?
Which method of the httpservletrequest object is used?
What are the two important api's in for servlets?
How to read request headers from servlets?
Can we override servlet service method?
Explain the servlet filter.
Explain the architechure of a servlet?
Explain servlet.
What are life cycle methods of a servlet?
How to generate the server side programming and the advantages of it over the other languages?
How many objects of a servlet is created?
Can you use javascript in servlets?
What if you need to span your transaction across multiple servlet invocations?