For this question, assume "collection" is an ArrayList. Which of the following get methods will get the second element in the ArrayList?

collection.get(1);
  • collection.get(0);
  • collection.get(collection.size()-1);
  • collection.get(collection.size());

There are not hints for this question