Guys,
I want to know which of the following are not
Thread safe!
Context-scoped attributes
Session-scoped attributes
Request-scoped attributes
Instance variables in the
servlet Local variables in service method
Static variables in the servlet
I know that the first 3 are not thread safe and that we have to synchronize them. What about Instance variables?? Local variables inside the service method is thread safe reason every service method runs in a seperate thread. I want to know what about Static variables and Instance variables?? Any thoughts??