Exam 14: Generics and the Arraylist Class

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

What is a parameterized class?

(Essay)
4.8/5
(30)

The definition of a parameterized class is a class with one or more type parameters.

(True/False)
4.9/5
(42)

Class and method definitions that include parameters for types are called:

(Multiple Choice)
4.9/5
(31)

You can plug in a primitive type for a type parameter.

(True/False)
4.9/5
(41)

Which is the correct syntax for placing the string "boat" into an ArrayList name recVehicles in position 3 for the first time?

(Multiple Choice)
4.8/5
(34)

All of the following are search methods of the ArrayList class except:

(Multiple Choice)
4.8/5
(33)

A for loop is an enhanced loop.

(True/False)
4.8/5
(29)

An ArrayList object has a fixed size.

(True/False)
4.9/5
(35)

The keyword ___________ can be used to place a bound on a type parameter.

(Multiple Choice)
4.8/5
(39)

ArrayList objects do not have the array square-bracket notation.

(True/False)
4.8/5
(27)

The Java standard libraries have a class named ___________ that behaves almost exactly the same as the class ArrayList.

(Multiple Choice)
4.9/5
(34)
Showing 21 - 31 of 31
close modal

Filters

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