Interview Answer

1 Answer

▲

0

▼

Generally, one should keep variables as abstract as possible unless you need APIs specific from the "real" time. This gives you more opportunities to use your list in methods that as for a List parameter, E.g void foo(List x) could take an ArrayList, a LinkedList, or any other XXXList so long as it depends from List.