0 votes
in JAVA by
What is an interface in java?

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.

Related questions

0 votes
asked May 2, 2021 in JAVA by sharadyadav1986
+1 vote
asked Apr 15, 2021 in JAVA by SakshiSharma
...