Exam 16: Generic Collections

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Maps allocate keys to values and cannot contain duplicate keys, i.e., the key-to-value mapping is a __________ mapping.

(Multiple Choice)
4.8/5
(38)

The collections framework provides various __________ collection interfaces from which the programmer can quickly "flesh out" complete customized implementations.

(Multiple Choice)
4.7/5
(38)

Which statement about hashing is false?

(Multiple Choice)
4.7/5
(36)

Java supports type inferencing with the <> notation in statements that declare and create generic type variables and objects. For example, the following line: List<String> list = new ArrayList<String>(); Can be written as:

(Multiple Choice)
4.9/5
(33)

Which of the following performs a boxing conversion?

(Multiple Choice)
4.9/5
(34)

Which statement is false?

(Multiple Choice)
4.8/5
(34)

Collections method __________ returns true if two Collections have no elements in common.

(Multiple Choice)
4.9/5
(34)

Which statement is false?

(Multiple Choice)
4.9/5
(38)

Iterator method __________ determines whether the Collection contains more elements.

(Multiple Choice)
4.9/5
(36)

Which statement is false?

(Multiple Choice)
4.8/5
(37)

To find the smallest and largest element of a Collection, use Collections methods _________ and __________.

(Multiple Choice)
4.8/5
(37)

If the desired Object is not found, binarySearch returns __________.

(Multiple Choice)
4.7/5
(36)

Which statement is false?

(Multiple Choice)
4.8/5
(40)

Map method ________ is used to determine whether a map contains a mapping for the specified key.

(Multiple Choice)
4.9/5
(31)

Collections method ___________ returns a Comparator object that orders the collection's elements in reverse order.

(Multiple Choice)
4.8/5
(32)

Class Collections provides algorithms for reversing, filling and copying ________.

(Multiple Choice)
4.8/5
(41)
Showing 21 - 36 of 36
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)