© Kishori Sharan and Adam L. Davis 2022
K. Sharan, A. L. DavisBeginning Java 17 Fundamentalshttps://doi.org/10.1007/978-1-4842-7307-4_21

21. Interfaces

Kishori Sharan1   and Adam L. Davis2
(1)
Montgomery, AL, USA
(2)
Oviedo, FL, USA
 
In this chapter, you will learn:
  • What interfaces are

  • How to declare interfaces

  • How to declare abstract, default, private, and static methods in interfaces

  • How to fully and partially implement interfaces in a class

  • How to evolve interfaces after they are published

  • How to inherit an interface from other interfaces

  • Using the instanceof operator with interfaces

  • What marker interfaces are

  • How interfaces can be used to implement polymorphism

  • How dynamic binding applies to method calls on interface-type variables

  • What functional interfaces ...

Get Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.