Trimble Interview Question

What is the difference between ArrayList and LinkedList and when will you prefer to use?