Exam 16: Generic Collections

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

Which of the following performs an unboxing conversion? Assume x refers to an Integer object.

Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
Verified

A

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

Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
Verified

A

Objects of many classes can now be output and input with Java's object __________.

Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
Verified

C

The collections framework algorithms are __________, i.e., each of these algorithms can operate on objects that implement specified interfaces without concern for the underlying implementations.

(Multiple Choice)
4.7/5
(48)

Which statement is false?

(Multiple Choice)
4.8/5
(42)

Iterator method __________ determines whether the Collection contains more elements.

(Multiple Choice)
4.8/5
(30)

__________ methods enable a program to view a portion of a collection.

(Multiple Choice)
4.8/5
(36)

If no elements are in the Stack, method pop throws an __________.

(Multiple Choice)
4.8/5
(35)

Which statement is false?

(Multiple Choice)
4.9/5
(31)

Algorithm __________ randomly orders a List's elements.

(Multiple Choice)
4.9/5
(44)

LinkedList method listIterator returns a(n) __________.

(Multiple Choice)
4.8/5
(40)

Which of the following is not an abstract implementation provided by the collections framework?

(Multiple Choice)
4.8/5
(38)

Method shuffle is a member of __________.

(Multiple Choice)
5.0/5
(26)

Which statement is false?

(Multiple Choice)
4.8/5
(38)

The classes and interfaces which comprise the collections framework are members of package ________.

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.9/5
(42)

Which statement is false?

(Multiple Choice)
4.7/5
(31)

Which of the following performs a boxing conversion?

(Multiple Choice)
4.7/5
(38)

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

(Multiple Choice)
5.0/5
(39)

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

(Multiple Choice)
4.7/5
(32)
Showing 1 - 20 of 41
close modal

Filters

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