• Post Reply Bookmark Topic Watch Topic
  • New Topic

load on startup

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
load on start up number is the rank but not the quantity right?
and there is only one instance of every servlet,then local variables are same to every one?
 
Ankit Garg
Sheriff
Posts: 9591
34
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes sudheer you are right!!! I think you meant instance variables when you said local variables of servlets. Local variables are declared inside methods so are new to every call to that method...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In other words, do not use instance variables in servlets.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!