Answer the following statements true (T) or false (F)

1. Collections is an interface.
2. Iterators can remove elements.
3. With hashing, as the load factor increases, the chance of collisions decreases.
4. A PriorityQueue permits null elements.

1. False. Collections is a class; Collection is an interface. ANS: True.
2. False. As the load factor increases, fewer slots are available relative to the total number of slots, so the chance of a collision increases.
3. False. Attempting to insert a null element causes a NullPointerException.

Computer Science & Information Technology

You might also like to view...

The memory device that provides a computer with very large, long-term storage area for storing programs and data even when the computer is off, is the ________

A) hard drive B) cache C) register D) RAM

Computer Science & Information Technology

Expression Web includes many image editing functions available on the Styles toolbar.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology