Originally posted by Mohen Vijay:
I have a static method that instantiates an object. If more than one person accesses the method, will it be an issue ??
Any help will be appreciated ...
That fully depends on the implementation of the static method. If the static method only accesses variables on the stack, you'll be fine. If the method does r/w access on any static variables or shared resources, you might get into trouble. Without a code fragment, it's impossible to say.
The key issue here, as Ulf Dittmer pointed out, is
shared resources. That's where you might run into trouble. Two threads executing the same method per se is no cause for concern.
[ July 24, 2005: Message edited by: Barend Garvelink ]
SCJP 1.4, SCJD 1.4, SCWCD 1.3, ICSD:Websphere 5.1