I have a doubt now... Say you have a util abstract class with static methods. Whenever a method is called, is it thread safe? or is there a chance that the same method be called more than once at the same time and corrupting the data? Simple question, but I'm kind of puzzled... Thanks, Francois
Joined: Jan 09, 2001
Hi Francois, The only way to make a method thread safe is to make the methods synchronized. Example (thread safe ): java.util.Vector Example (not thread safe): ArrayList Regards, Manfred.