Overriding a synchronized method

て烟熏妆下的殇ゞ 提交于 2019-12-01 17:21:25

问题


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.



来源:https://stackoverflow.com/questions/10173345/overriding-a-synchronized-method

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!