1.InterfaceOne is one interface having two methods ,my question i how to override that 2 methods using Lambda expression?
interface InOne{
void m1();
void m2();
}
public class LambdaExpForTwomethodsInInterface {
public static void main(String[] args) {
//For One method overriding
InOne one=()->{
System.out.println("InOne m1");
};
one.m1();
}
}
2.If there are 5 methods in interface,but i want to override only one method,is there any way to that using Lambda exp?