Is synchronized static method legal in Java?
Yes. It gets the lock on the object representing the class the method is defined in (eg MyClass.class)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With