In the first case you can replace obj with a LinkedList or some other implementation of the List interface. That is usually regarded as better practice. By saying "List" you are promising the compiler that every method of the List interface will be available.
Destroy anything that stands in your way. Except this tiny ad: