
Object.hashCode() and Object.equals()
The Object.hashCode() method returns a number that is effectively random. This number is also implementation- and instance-dependent. This has a couple consequences: 1 – The order of iteration for elements in a Hashtable will be unpredictable, and will generally differ from one program invocation to the next.2 – A class