Overriding a synchronized method

2020-04-07 02:45发布

问题:

What happens when a method in super class is synchronized, but you override the method in a subclass and don't synchronize it ?

回答1:

If a method in super class is synchronized, but you override the method in a subclass and don't synchronize it, then the method is no longer synchronized if called on the subclass.