Question: Which statement is true about the java.util.ArrayList class? Select the one correct answer. (a) The method delete() can be used to delete an element at

Which statement is true about the java.util.ArrayList class?

Select the one correct answer.

(a) The method delete() can be used to delete an element at a specific index in an ArrayList.

(b) The method deleteAll() can be used to delete all elements in an ArrayList.

(c) The method insert() can be used to insert an element at a specific index in an ArrayList.

(d) The method append() can be used to append an element at the end of an ArrayList.

(e) The method replace() can be used to replace the element at a specific index with another element in an ArrayList.

(f) The method find() can be used to determine whether an element is in an ArrayList.

(g) The method capacity() can be used to determine the current capacity of an ArrayList.

(h) None of the above.

Step by Step Solution

3.48 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

h The method remove can be used to delete an element at a ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!