public class MainClass { public static void main(String[] argv) { MyClass myClass = new MyClass(); MainClass mainClass = new MainClass(); System.out.println(myClass.equals(mainClass)); } } class MyClass { public boolean equals(Object object) { if (object instanceof MyClass == false) { return false; } return true; } }
false