in JAVA by
public interface Adder {

    String add(Function<String, String> f);

    void add(Consumer<Integer> f);



public class AdderImpl implements Adder {



    public  String add(Function<String, String> f) {

        return f.apply("Welcome ");




    public void add(Consumer<Integer> f) {}


On calling add() method as described below, what will be the output?

String r = adderImpl.add(a -> a + " lambda"); System.out.println(r);

Prints "Welcome lambda"

Prints "Lambda"

Compilation error

Runtime error

Related questions

0 votes
asked Oct 7, 2019 in Bootstrap by Tracy Williams