Originally posted by Srinivasan thoyyeti: Hi saurabh,
If you don't pool and and at any time only one thread is gonna execute. and remember no other servlet can access that because it is private.
Are you clear now... Please let me know what you feel !
Any Suggestions on how we have to interpret the above question.
You can only assume things that the specification guarantees. In this case, the spec doesn't guarantee that there won't be any pooling. So you can't assume that. It suggests that there might be pooling of servlet instances. You have to answer based on the understanding that pooling may be there, in which case, it won't be thread safe.