+ 1

What is the difference between an interface and implementation

collections

17th Apr 2017, 7:08 PM
Marvin
Marvin - avatar
3 Answers
+ 3
interface class contains only abstract method. implements is used to inherit that interface class
18th Apr 2017, 3:01 PM
shobhit
shobhit - avatar
+ 1
Interface does not have any implementation (Java version < 8).. It will just have method signatures .. If any class wants to give definitions to such method it has to implement the interface using "implements" keyword.. so interface is just a structure and implementation is actual implementation of that structure.
17th Apr 2017, 8:03 PM
Sbk0103
Sbk0103 - avatar
- 1
in interface we use implementation
17th Apr 2017, 7:10 PM
Somnath Ghosh
Somnath Ghosh - avatar