java public interface

Java Interfaces Tutorial

Many think that abstract methods are waste and interfaces are still more waste. If you understand correctly, you find their immense usage. Let us see one on Java Interfaces. Suppose I would like to construct a house. I take the help of Java interfaces as follows.

Observe, the method…