0 votes

1 Answer

0 votes
by

What is an interface in java?

An interface in Java is similar to a class, but the body of an interface can include only abstract methods and final fields (constants). A class implements an interface by providing code for each method declared by the interface.

...