Posts

Java Interface

  INTERFACE :   An Interface In java is a blueprint of a class. Interface contain final and static variables by default ( Static : the variable can be directly accessed with-out creating an object that is a common Variable for all the class and Final : that variable value is constant we cannot change “ We no need to specify static, final keywords by default the variable treated as static & final ” ). Interface contain Abstract Methods ( Abstract Method : the method which contain only definition not the body ” We can’t implement the body ” ). Methods in Interface are Public( access specifier ) by default. Interface supports the functionality of Multiple Inheritance . We can define Interface with Interface keyword. A class extends another class( by using extend keyword ), An Interface extends another Interface but A class Implements an Interface(only interface without implementation-class( A class implements the interface with Implements key word ) there is no us...