WHAT IS interface in Java give example?

An interface is a fully abstract class . It includes a group of abstract methods (methods without a body). We use the interface keyword to create an interface in Java. For example, interface Language { public void getType(); public void getVersion(); }

Sizin İçin Seçtik  What is the difference between interface and abstract?

Leave a Reply

Your email address will not be published. Required fields are marked *