will this code work and if yes then why is x.equals(x1) work? Can you please explain?Code
interface X{ void m1(); void m2(); } public void m1(){ } public void m2(){ } } public class ParentChildInfterfaceDemo { X x = new Child2(); X x1 = new Child2(); x.m1(); x.m2(); x.equals(x1); } } Copyright GeekInterview.com
View all questions by kool.bird9 View all answers by kool.bird9