Exam 14: Generics and the Arraylist Class

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

A for loop is an enhanced loop.

(True/False)
5.0/5
(39)

You can use any primitive type as the base type of an ArrayList class.

(True/False)
4.9/5
(38)

You can not use the set method to put an element at just any index.

(True/False)
4.8/5
(39)

What are the three main disadvantages of an ArrayList?

(Essay)
4.8/5
(40)

Write Java statements to display the size of the resulting ArrayList from question 5 above.

(Essay)
4.9/5
(38)

What is a parameterized class?

(Essay)
4.9/5
(40)

The compiler option -Xlint is good for debugging.

(True/False)
4.8/5
(35)

To use the Java class ArrayList,you must import the package:

(Multiple Choice)
4.7/5
(39)

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

(Multiple Choice)
4.8/5
(40)

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

(True/False)
4.8/5
(33)

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

(Multiple Choice)
4.8/5
(42)

The removeObject theElement)method of the ArrayList class returns:

(Multiple Choice)
4.7/5
(45)
Showing 21 - 32 of 32
close modal

Filters

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