What happens if my equals method (overridden in employee class - which is acting as key) always returns true (hardcoded) or always returns false?
Also similary, can I user Math.random as hashcode? Why or why cant i do that?
What happens if my equals method (overridden in employee class - which is acting as key) always returns true (hardcoded) or always returns false?
Also similary, can I user Math.random as hashcode? Why or why cant i do that?