when we use interface and abstract class in java code example
Example 1: java abstract vs interface
you can extend only one abstract class, but you can implement as much interfaces as you would need
Example 2: abstract classes and interfaces in java
abstract class have no implementation of methods functions inside it. the classes which extending abstract class have to implement it