JavaPins - Stories tagged with override
1
Pins

How to override equals and hashCode method in Java - Example, Tips

posted by anishaanisha 623 days, 16 hours, 11 minutes ago
Tuesday, August 07, 2012 7:39:11 PM GMT
Override equals and hashCode in JavaEquals and hashCode in Java are two fundamental method which is declared in Object class and part or core Java library. equals() method is used to compare Objects for equality while hashCode is used to generate an integer code corresponding to that object. equals and hashCode has used extensively in Java core library like they are used while inserting and retrieving Object in HashMap, see how HashMap works in Java for full story, equals method is also used to avoid dup... (more)
category: Java EE | clicked: 0 | comment | | source: javarevisited.blogspot.sg
tags: Equal, Hashcode, Java, override
2
Pins

Overiding Static method in java-Overriding Vs Hiding

published 757 days, 20 hours, 13 minutes ago posted by vinaykumarvinaykumar 790 days, 22 hours, 51 minutes ago
Monday, March 26, 2012 3:37:33 PM GMT Wednesday, February 22, 2012 12:59:04 PM GMT
Can I override a static method? Many people have heard that you can't override a static method. This... (more)
category: JAVA | clicked: 20 | comment | | source: www.coderanch.com
tags: Java, Method, override, static