//Implementation of Runnable Imterface using Lambda function public class Runnable_Lambda { public static void main(String[] args) { { Runnable obj1=()-> //Lambda Function 01 { for(int i=0; i<20; i++) { System.out.println("Hi"); try { Thread.sleep(10); } catch (InterruptedException e) { System.out.println(e); } } }; Runnable obj2= ()-> //Lambda function 02 { for(int i=0; i<20; i++) { System.out.println("Hello"); try { Thread.sleep(10); } catch (InterruptedException e) { System.out.println(e); } } }; Thread t1=new Thread(obj1); Thread t2=new Thread(obj2); t1.start(); t2.start(); } } }