Java Interface

Interface What is interface: Interface is similar to class.it is a collection of abstract method. Interface dont have defination. A class can implements an interface.thereby inheriting a abstract methods of the interface. Abstract methods an interface also contain constants,and default methods,static methods. Method body exits only for default methods and static methods. Interface can have any number of methods. You cant create object for interface. Interface dont not have constractor..

Read More