Category Archives: default method

Java 8+ Functional Programming :: Default Functional Interfaces (some examples)

Functional interfaces provide target types for lambda expressions and method references. Package – java.util.function. https://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.html The interfaces in this package are general purpose functional interfaces used by the JDK, and are available to be used by user code as well. … Continue reading

Posted in default method, functional interface, functional programming, lambda, lambda expression | Tagged , , , , | Leave a comment

Java 8+ Functional Programming :: Default Methods

Default methods enable developers to add new functionalities to interfaces without breaking the existing implementation of these interfaces. Default methods are implicitly public. It provides flexibility to allow interface define implementation which will use as default in the situation where … Continue reading

Posted in default method, functional interface, functional programming, lambda, lambda expression | Tagged , , , , | Leave a comment