Link Details

Java Best Practices to use apache common library. To promote code reuse which means less unit testing, less bugs....

Posted by ekramalikazi  |   Dec 28 2012 / 10:18

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.


User 388907 avatar

MCII replied ago:

"3. Have you overridden equals and hashcode methods?"

 In Java it's almost never appropriate to implement equals() and hashCode(). Quite the contrary, it's dangerous! The only exception are value types like Date, BigDecimal etc..

Reply 0 votes
User 1003111 avatar

Ekram Ali Kazi replied ago:

Thanks MCII for the feedback.I do agree with you on this. I have re-framed the content. Sorry for the confusion. Thanks, Ekram Ali Kazi

Reply 0 votes

Recommended Links

Written by: Ryan Knight
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Play
  3. Akka
  4. Debugging JavaScript
  5. Design Patterns
  1. Apache Hadoop
  2. REST
  3. Java
  4. Git
  5. Java Performance
Connect with DZone