The abstract keyword can only be used on classes and methods in java. An abstract class cannot be instantiated and an abstract method can have no implementation. Lets dig further. [Read more…]
This is one of the most frequently asked question in the interview. Many interviewers will not leave this topic. So lets see the difference between them
- The main difference is that the Interfaces are implicitly abstract and cannot have implementation, whereas the abstract class can have the concrete class.
- Interface are implemented using the “implements” keyword. Abstract class can be extended using the “extends” keyword. [Read more…]