If I have a static method that does hold variables within the method, but holds on to no state from the Class it is in, does that method need to be synchronized?
example:
Of course the two private methods would do more than just return the value.
Nope, you're in a safe place because each thread gets its own copy of the local variables in the methods. You're in danger when two threads can get references to the same object, which could, unbeknownst to you, happen with your argument!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus