What are the three main disadvantages of an ArrayList?

What will be an ideal response?


1) They are less efficient than arrays; (2) they do not have the square bracket notation, and
so using an ArrayList is sometimes notationally more awkward than using ordinary arrays; and (3)
the base type of an ArrayList must be a class type (or other reference type); it cannot be a primitive
type, such as int, double, or char.

Computer Science & Information Technology

You might also like to view...

_________ protocols enable communicating parties to satisfy themselves mutually about each other's identity and to exchange session keys.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The file __________ can often be used to distinguish among file types.

a. header b. trailer c. extension d. contents

Computer Science & Information Technology

A report can be created from all of the following EXCEPT:

A) one table. B) multiple tables. C) a form. D) a query.

Computer Science & Information Technology

Which of the following would be appropriate syntax for the heading of a copy constructor for a class called rulerType?

A. rulerType(int inches, int centimeters) B. rulerType() C. rulerType(const rulerType& myRuler) D. copy rulerType(int inches, int centimeters)

Computer Science & Information Technology