Skip to content

Instantly share code, notes, and snippets.

@sovannarithcheav
Created October 24, 2019 04:21
Show Gist options
  • Select an option

  • Save sovannarithcheav/7478f7fd8fc6728f0474bfb5a7628461 to your computer and use it in GitHub Desktop.

Select an option

Save sovannarithcheav/7478f7fd8fc6728f0474bfb5a7628461 to your computer and use it in GitHub Desktop.
function interface with lambda
// Java program to demonstrate Implementation of
// functional interface using lambda expressions
class Test
{
public static void main(String args[])
{
// lambda expression to create the object
new Thread(()->
{System.out.println("New thread created");}).start();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment