File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes equals() method overide from which class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "equals() method overide from which class" Watch "equals() method overide from which class" New topic
Author

equals() method overide from which class

sumanta panda
Ranch Hand

Joined: Jun 23, 2008
Posts: 224
Dear All,

In Java equals() method overide from which class?

Thanks and Regards,
Sumanta Pnada
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3011
    
    9
If you create a new class without an equals method or an extends clause and you try to call the equals method on that class it works doesn't it ?
Therefore your class must have inherited the equals method from one of its parents. Work your way up the inheritance tree of your class and find which one implements equals.


Joanne
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: equals() method overide from which class
 
Similar Threads
loops
equals method
Difference between Object's equals() and String's equals() method ?
equals()
Compare two StringBuffer objects