Month: March 2014

Java 8 Series: Constructor and Method References

This series’ recent post showed that lambda expressions can be assigned to variables whose type is a functional interface, e.g. like this: Runnable runForrest = () -> Forrest.run();. Today we’ll learn how to initialize such functional interface-typed variables with method and constructor references. Picking up the previous example that means that we’ll see how to directly reference the Forrest.run() method.

Read More