News

class java.util.ArrayList class java.util.LinkedList In this case, the implementation methods for ArrayList, LinkedList, and Vector are all different, which is a great scenario for using an interface.
In other words, a Java class that supports the SOLID open-closed principle will find use in originally un-envisioned scenarios, and be flexible enough to work with newly created classes, interfaces ...