Extending Interface
Extending Interface
Topic – Interface
• To Achieve Multiple Inheritance (Java does not support multiple inheritance but using
interface we can achieve it)
What’s allowed?
• JDK 8 accepts
• Method body but it should be default or static
• Default methods, Static methods and Private methods
• Private methods from java 9
• When a class implements an interface that inherits another interface, it must provide
implementations for all methods required by the interface inheritance.