Java, Spring, Microservices, Interview, Coding.
performance O(1) for get() and put() methods but that is in the ideal case when the Hash function distributes the objects evenly among the buckets. But the performance may worsen in the case hashCode() used is not proper and there are lots of hash collisions. As we know now that in case of hash