Good ideas and conversation. No ads, no tracking. Login or Take a Tour!
Interfaces in Java language are used to define a reference type and consist of abstract methods,constant values and other nested reference types.Moreover,interfaces cannot be instsansiated and they can only be implemented by a concrete class or extened by another interface.While a class can extend only one class,it can implement more than one interfaces and in this way we can achieve multiple inheritance in Java Language.What we actually achive with interfaces is to define a certain behavior for the implementing class.In other words with interfaces we define what a class must do without telling anything about how to do it