Chapter 16 Review Flashcards Preview

COP_3252 > Chapter 16 Review > Flashcards

Flashcards in Chapter 16 Review Deck (16):
1

Iterator

An object that iterates through a collection and can remove elements from the collection during the iteration

2

An element in a list can be accessed by using the elements

index

3

Autoboxing

The automatic conversion of a value of primitive type to an object of the corresponding type-wrapper class

4

Unboxing conversion

The automatic conversion of an object of a type-wrapper class to the equivalent primitive type

5

What two data structures in Java provide array like storage but can be resized dynamically.

ArrayList and Vector

6

You can use a(n) ___________ to create a collection that offers only read-write access to yourself

un-modifiable wrapper

7

Assuming that myArray contains references to double objects, ________________ occurs when the statement "double number = myArray[0];" executes.

Auto - Unboxing

8

The algorithm ____________ determines if two collections have elements in common.

disjoint

9

Values of primitive types can be stored in collections

false

10

A Set can contain duplicate values

false

11

A map can contain duplicate keys

false

12

A linked list can contain duplicate values

true

13

A collection is a interface

false (Collections is a class; Collection is an interface)

14

Iterators can remove elements

true

15

With hashing, as the load factor increases the chance of collision decreases

false

16

A PriorityQueue permits null elements

false