In a servlet, are the method variables are shared between several threads or not?

Luc-André Essiambre

Variables declared in methods are never shared, whether these methods are static or not...

[However, session variables are shared, and instance variables *may* be shared (or may not, which means you shouldn't use them) - Alex]

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact