Created
October 24, 2019 04:21
-
-
Save sovannarithcheav/7478f7fd8fc6728f0474bfb5a7628461 to your computer and use it in GitHub Desktop.
function interface with lambda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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