Multiple choice

Which of the following methods of Vector class returns the element at the location specified by the argument in the method?

  1. firstElement()

  2. indexOf()

  3. elementAt()

  4. enumeration elements()

  5. capacity()

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

This method of Vector class returns the element at the location specified by the argument in the method.