When trying to add an item to a list, an IndexOutOfBoundsException will occur when attempting to add to an index that is

one more than the size of the list
  • 0
  • one less than the size of the list
  • the size of the list

Items will need to be shifted to make room for the new item.