Link Details

Link 897213 thumbnail
User 1003111 avatar

By ekramalikazi
Published: Dec 28 2012 / 10:18

Java Best Practices to use apache common library. To promote code reuse which means less unit testing, less bugs....
  • 14
  • 6
  • 2562
  • 2683
User 388907 avatar

MCII replied ago:

0 votes Vote down Vote up Reply

"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..

User 1003111 avatar

Ekram Ali Kazi replied ago:

0 votes Vote down Vote up Reply

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

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.

Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java