why the synchronized method overriding can be possible with a non synchronized method.
Thanks in advance
posted 9 years ago
hi the answer to your question is that when method is overriden in the subclass to non synchronized it's not guaranted that every time we will be creating thread of subclass. So Sun has allowed this behaviour and the rule for overriding is that we can't decrease the accessibility modifier i.e. public,protected,default and private. The method declared public cannot be overridden to protected so mainly you have to focus in exam whether these accessibilty modifier are decreasing the accessibility or not.