Java, Spring, Microservices, Interview, Coding.
about hashCode() and equals() method Understanding the Code Lets get through the code to see what is happening, this will also help in understanding how put() method of HashMap works internally. Notice that I am inserting 4 values in the HashMap, still in the output it says size is 1 and iterating