Java interface vs class

broken image
broken image

Along with abstract methods, an interface may also contain constants, default methods, static methods, and nested types.

broken image

A class implements an interface, thereby inheriting the abstract methods of the interface.

broken image