Java Interfaces

In Java programming, an interface is a collection of method declaration and constant that one or more class can use. It is syntactically similar to the class but the main difference between class and interface is that class contain method declaration with method body and interface method declares without any body. Syntax of interface:

Read more