HashMap object is created with an initial capacity of 500 and a load factor of 0.8. How many elements are in the map when the hash table is resized?

What will be an ideal response?


500 x 0.8 = 400, so adding the 400 th element to the map will trigger the resize operation on the hash table.

Computer Science & Information Technology

You might also like to view...

To prevent class objects from being copied:

a. Make the overloaded assignment operator private. b. Make the copy constructor private. c. Both (a) and (b). d. None of the above.

Computer Science & Information Technology

multiplications before additions" is an example of ______.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

To use a function, simply select it from the function list, then follow the on-screen instructions to select the ____ that contain arguments for the calculation.

A. columns B. rows C. cells D. references

Computer Science & Information Technology

In Word, a green wavy underline denotes a potential ________ error

A) grammar B) file C) computer D) spelling

Computer Science & Information Technology