hashCode()
- It returns hash code of object.
- hashCode() of Object class returns casting object address to int.
- Rule : if you do overriding equals(), should do overriding hashCode().
- System.identityHashCode(Object obj) is same as hashCode() of Object class.
toString()
- It returns object to String.
- Object == iv group. Object=>String means iv value=>String