Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

1178


Explain request dispatcher and its methods.

1062


What are the advantages of servlets over traditional cgi?

1145


What is the major difference between context parameter and context attribute?

1165


Can you send an authentication error from a servlet?

1023


how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file

2755


What is session?

1125


Explain the jar and war files in servlet?

1152


Why is a constructor needed in a servlet even if we use the init method?

1210


How a servlet is unloaded?

1134


How is the get () method different from the post() method?

1036


What's the difference between authentication and authorization?

1203


What are the differences between servlet context vs servlet config?

1138


What are different Authentication options available in Servlets.

1124


How are filters?

1084