Possible Duplicate:
When to use a List over an Array in Java?
As the title states, I am trying to figure out when to use certain types of lists. I just realized that I have no idea how these Object[]-lists are implemented, and thus when they are preferred over List. Perhaps they are only preferred when I know that the size of the list wont change? I hope I have made my question clear.
Cheers,
Effective Java, chapter 5:
Read the explanation of Item 25.
Also,
Object[]has fixed size, and theListmay change in size (the efficiency depends on the implementation – if it’sLinkedList,ArrayList, etc.)