Make use of a qualified tutor to get the answer
Condition1 || Condition2 // returns true if one of the conditions is true.
interface LambdaFunction { void call(); } class FirstLambda { public static void main(String []args) { LambdaFunction lambdaFunction = () -> System.out.println("Hello world"); lambdaFunction.call(); } }
Runnable r = ()-> System.out.print("Run method"); // is equivalent to Runnable r = new Runnable() { @Override public void run() { System.out.print("Run method"); } };