In this recipe, you will learn about a new feature that was introduced in Java 9, the private interface method, which is of two types—static and non-static.