Skip to content

An interface in Java is a reference type that defines a contract of methods that a class must implement. It allows multiple inheritance of type, promotes loose coupling, and enables polymorphism. Interfaces can contain: Abstract methods (without a body) Default methods (with a body, introduced in Java 8) Static methods Constants

Notifications You must be signed in to change notification settings

harshadev-7/interfaces-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

About

An interface in Java is a reference type that defines a contract of methods that a class must implement. It allows multiple inheritance of type, promotes loose coupling, and enables polymorphism. Interfaces can contain: Abstract methods (without a body) Default methods (with a body, introduced in Java 8) Static methods Constants

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages