In the implementation of MyArrayList, which of the following are true?

A. size indicates the number of elements in the list.
B. capacity is the length of the array used to store the elements in the list.
C. capacity is always greater than size.
D. size is reduced by 1 if an element is deleted from the list.
E. capacity is reduced by 1 if an element is deleted from the list.

Answer: A, B, and D
Explanation: (C) is not correct because capacity may equal to size.

Computer Science & Information Technology

You might also like to view...

Write code statements that prompt for and read a double value from the user, and then print the result of raising that value to the fourth power. Output the results to 3 decimal places.

What will be an ideal response?

Computer Science & Information Technology

Referential integrity means that for each value in the ________ field of a table, there is a corresponding value in the primary key of the related table.

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

Computer Science & Information Technology