Multiple choice java core java

Which of the following is not a method of java.util.ArrayList?

  1. 1.add(Object x)

  2. 2.remove(Object x)

  3. 3.contains(Object x)

  4. 4.insert(int i,Object x)

  5. 5.set(int I,Object x)

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

ArrayList has add(), remove(), contains(), and set() methods, but does not have an insert() method - the equivalent functionality is provided by add(int index, E element). Option D correctly identifies the non-existent method.