Interface means the attraction between user and application .static constants and abstract methods is consider in interface. The interface in java is a mechanism to achieve abstraction.It is used to achieve abstraction and multiple inheritance in Java.
- It is used for fully abstraction.
- functionality support of multiple inheritance.
- loose coupling.
- A public and abstract keywords before the interface method and static and final keywords before
data members in java compiler.
syntax :
interface interface_name{}
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
interfaces in Java :
Interface means the attraction between user and application .static constants and abstract methods is consider in interface. The interface in java is a mechanism to achieve abstraction.It is used to achieve abstraction and multiple inheritance in Java.
- It is used for fully abstraction.
- functionality support of multiple inheritance.
- loose coupling.
- A public and abstract keywords before the interface method and static and final keywords before data members in java compiler.
syntax :
interface interface_name{}