Shanky Sohar wrote:
David Newton wrote:
Shanky Sohar wrote:It is because
String extends OBject and compiler choose most superclasss object when compare to subclass
No, it's because the compiler calls the method with the most specific subclass, as the link already provided states.
That's correct .but tell me whether i am right or not
as per what i think is that most superclass means most specialized class and specialized means most specific class