I have a derived class, and for some reason, I have to make two methods of this class synchronized to prevent them executing at the same time. One of the methods is an overridden method. Parent method is not synchronized.
Is it ok to synchronize the overridden method?
Look here: https://stackoverflow.com/a/15998431/5226711
synchronized is not part of the method signature.
So it is okay to synchronize the overridden method.
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