The Java Platform Java Runtime Environment Data Types Control Statemets Methods Arrays Classes and Objects Inheritance Constructor Interface![]() Interface![]() Interface Example![]() Interfaces and coupling![]() The Java XML package![]() The Java IO Serializable interface![]() Using Interface Packages & Access Modifiers Java Collections Framework | InterfaceAn interface defines a protocol of behavior that can be implemented by any class anywhere in the class hierarchy. An interface defines a set of methods but does not implement them. A class that implements the interface agrees to implement all the methods defined in the interface, thereby agreeing to certain behavior. Differences interface and abstract class:
|