I am looking in to the java queue and i stuck in this line "Queue implementations generally do not define element-based versions of the equals and hashCode methods but instead inherit the identity-based versions from Object."
1.need the complete meaning of the above text.
2.what is element based versions of the equals and hashcode -- what it refers to ?
3.Identity based versions -- what does this mean ?
4. is Version belong to class or object / who's version and where it will be ?
URL :https://docs.oracle.com/javase/tutorial/collections/interfaces/queue.html