In HashMap why threshold value (The next size value at which to resize) is capacity * load factor. Why not as equal to size or capacity
In java 8 when threshold is reached, than content of bucket is swithcing from using links between object to balanced tree which improves performance from O(n) to O(log n). This is one of features in java 8 sometimes need to remember