Multiple choice

Which of the following methods is/are present in the Vector class?

  1. copyInto(array : Object[])

  2. removeFirst()

  3. lastIndexOf(element :e)

  4. addLast(object)

  5. Set(int index, element e)

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

This is the correct answer, as copyInto(array : Object[])Method is present in the Vector class and it copies the elements in this vector to an array.