method references

Understanding Java enums

A Guide to Method References in Java 8

Reading Time: 2 minutes In this blog, we will get to know about method references in Java, where and how to use them. What are Method References? Method References allow us to pass the name of a method where a functional interface is expected. This brings us to another question. What is a Functional Interface? Functional Interfaces are single-method interfaces that encapsulate a single behaviour. For eg. Runnable which Continue Reading