Link Details

Link 897213 thumbnail
User 1003111 avatar

By ekramalikazi
via ekramalikazi.wordpress.com
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
  • 2505
  • 2681

Comments

Add your comment
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.

Java Performance Optimization
Written by: Pierre-Hugues Charbonneau
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Node.js
  2. Debugging JavaScript
  3. OO JS
  4. JSON
  5. Ajax