Which statement is true about the java.util.ArrayList class? Select the one correct answer. (a) The method delete()
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 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 Answer:
Programmers Guide To Java SE 8 Oracle Certified Associate OCA
ISBN: 9780132930215
1st Edition
Authors: Khalid Mughal, Rolf Rasmussen