0

What is interface in java

19th Feb 2017, 12:23 PM
kanishk
2 Antworten
+ 4
An interface in java is a blueprint of a class. It has static constants and abstract methods. The interface in java is a mechanism to achieve abstraction. There can be only abstract methods in the java interface not method body. It is used to achieve abstraction and multiple inheritance in Java.
19th Feb 2017, 12:53 PM
Antares
0
thnx
21st Mar 2017, 2:43 AM
kanishk