What is the difference between interface and an abstract class? This is the first question most of the java interviewers start in interviews. Ofcourse it seems a silly question and can answer. But if interview goes depth of the concept of abstract class and interface, most of the candidates not able to answer. To overcome that ignorance just read the points that I have highlighted below. 1. Abstract class is a class which contain one or more abstract methods, which has to be implemented by sub classes. An abstract class can contain no abstract methods also i.e. abstract class may contain concrete methods. A Java Interface can contain only method declarations and public static final constants and doesn't contain their implementation. The classes which implement the Interface must provide the method definition for all the methods present. 2. Abstract class definition begins with the keyword "abstract" keyword followed by Class definition. An Interface definition be...
About Java and it's related concepts..