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 questions in the interview. Many interviewers will not leave this topic. So let’s see the difference between them
- The main difference is that the Interfaces are implicitly abstract and cannot have implementation, whereas an abstract class can have a concrete class.
- Interface is implemented using the “implements” keyword. Abstract class can be extended using the “extends” keyword. [Read more…]