Example & Tutorial understanding programming in easy ways.

What is interface?

An Interface is a group of java methods & constants .The implemented class must have provide body of all methods. It is fully abstract like abstract class we can't create object of interface using new keywords.
 1.methods are only public & abstract.
 2.methods body must be provided by implemented class.
 3.variable may be only public,final,static, must be initialized .
 4.variable are by default public final
 5.methods are by default public abstract

Read More →