Hi,
Here Object class is the default superclass for
Test class.
Test class is overriding the equals method.
Object class equal method is public method, here it is default/package method.
An overriding method can't use more restricted access spefier , but here public method is overriden with 'default' method. But this program is not giving any compilation error. Can any one of u tell me the reason?