Question 1
Which of the following methods are in java.util.List?
◦ remove(int index)
◦ set(int index, E element)
◦ get(int index)
◦ subList(int fromIndex, int toIndex)
◦ add(int index, E element)
Question 2
Which of the following are true?
◦ You can insert an element anywhere is an arraylist.
◦ You can use a linked list to improve efficiency for adding and removing elements at the beginning of a list.
◦ You should use an array list if your application does not require adding and removing elements at the beginning of a list.
◦ You can insert an element anywhere is a linked list.