Thread thread = new Thread(new Runnable() { @Override public void run() { System.out.println("Running."); } })
thread.start()
lambda
Thread thread = new Thread(() -> System.out.println("Running."))
thread.start()

lambda

A lambda expression is a concise way to represent an anonymous function.
It allows you to define a method implementation inline with your code.

Notes: