I am going through HashMap implementation and referring to this link: How does Java implement hash tables? I am finding that "A HashMap contains an array of buckets in order to contain its entries". So, I have few questions-
- What is the type of the array of buckets.
- Since array has drawbacks (e.g. fixed size and allowed only homogeneous data).Then why we are using arrays despite of these drawbacks.
3.In case of same hashcode for a key or collision it uses linked list.How it gets(search) the reference of the second, third node etc.
Thanks in adv.