Java, Spring, Microservices, Interview, Coding.
bucket where that key is stored, equals() method helps in finding the right key as there may be more than one key-value pair stored in a single bucket. Bucket term used here is actually an index of array, that array is called table in HashMap implementation. Thus table[0] is referred as bucket0,