A HashMap with default capacity 16 can contain more than 11/16 objects without rehashing - Is this right?
问题 This is a followup question to What is the initial size of Array in HashMap Architecture?. From that question I understand the initial capacity of HashMap is 16 by default which allows up to 11 entries before resizing since the default load factor is 0.75. When does the rehashing take place? After 11 entries in the array or 11 entries in one of the linked lists? I think after 11 entries in the array. Since the array size is 16 a HashMap could contain many objects (maybe more than 16) in a