Java View all facts Glossary Help |
member > instance member > instance method > method that is declared in Object class > equals |
equals comparison table |
Subject | have | is | is a kind of | is a subtopic of | have example | is an instance of | have purpose | has definition |
---|---|---|---|---|---|---|---|---|
method that is declared in Object class | a comment at its head if the method is non-obvious | instance method | Methods | public float credit(float amountToCredit) { | ||||
equals | specification | overridden | Example Methods | boolean b = aPostalCode.equals(anotherPostalCode); | method that is declared in Object class | to test whether two objects are equal i.e. they contain the same data, but are not necessarily the same object | A method that compares two objects for equality |
Next method that is declared in Object class: finalize Up: method that is declared in Object class Previous method that is declared in Object class: clone