Why List = new ArrayList() ? in Java

The main reason you’d do this is to decouple your code from a specific implementation of the interface. When you write your code like this:

Continue reading