Methods Common to All Objects

Introduction

Objective-

Following Rules are described
  1. Item 0: Obey the general contract when overriding equals
  2. Item 1: Always override hashCode when you override equals
  3. Item 2: Always override toString
  4. Item 3: Override clone judiciously
  5. Item 4: Consider implementing Comparable

Published by

Unknown's avatar

sevanand yadav

software engineer working as web developer having specialization in spring MVC with mysql,hibernate

Leave a comment