What's the use of having a synchronized static method?
posted 10 years ago
I undesrtand that the use of having a synchronized method is, no 2 threads will try to execute one method at a time and corrupt the state of an object. So synchronized is useful when it come to instance methods. But what's the use of having a synchronized static method?