what is order of finding correct bucket in java hashmap??
In hashmap first bucket is located using hashcode method and then we iterate over it using equals method, so my question is on first part, what is complexity of finding the bucket in which desired key is present.
Looking up the bucket is O(1). Hashmap just computes the hashcode and uses it to index into the bucket slots.