Exam 20: Generic Collections

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

A Properties object is a __________ Hashtable object.

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

B

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

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

A

Which of these is not an example of a "real-life" collection?

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

D

__________ allows a program to walk through the collection and remove elements from the collection.

(Multiple Choice)
4.8/5
(36)

Which statement is false?

(Multiple Choice)
4.7/5
(35)

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

(Multiple Choice)
4.9/5
(40)

Which statement is false?

(Multiple Choice)
4.7/5
(37)

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

(Multiple Choice)
4.8/5
(33)

Which statement is false?

(Multiple Choice)
4.7/5
(38)

Which statement is false?

(Multiple Choice)
4.8/5
(36)

Algorithm __________ randomly orders a List's elements.

(Multiple Choice)
4.7/5
(36)

Most objects in Java can now be output and input with Java's object __________.

(Multiple Choice)
4.9/5
(45)

Which statement is false?

(Multiple Choice)
4.8/5
(31)

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

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.8/5
(43)

Java SE 7 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.8/5
(36)

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

(Multiple Choice)
4.7/5
(41)

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

(Multiple Choice)
4.8/5
(39)

LinkedList method listIterator returns a(n)__________.

(Multiple Choice)
4.7/5
(39)

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

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

Filters

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