In Java, you can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declares the same methods. That being the case, can you use abstract classes instead of interfaces?
In Java, you can create an abstract class that contains only abstract methods. On
Share
Not always:
Sun docs make a more detailed comparison: