Return to Java outline, Java, Java bibliography, Java courses, Java terms, Java topics
Java Interface is a reference type, similar to a class, that can contain only constants, method signatures, default methods, static methods, and nested types. Interfaces are used to define a contract that implementing classes must follow. A class that implements an interface must provide implementations for all of the interface's methods. Introduced in Java 1995 with Java 1.0, interfaces are key to achieving abstraction and polymorphism in Java, enabling flexible design patterns like dependency injection and strategy patterns.
https://docs.oracle.com/javase/tutorial/java/IandI/interfaceDef.html
“ (JPG4e)
Use interface references to Collections - http://www.javapractices.com/topic/TopicAction.do?Id=26