Why do I need a functional Interface to work with lambdas?

前端 未结 6 2144
故里飘歌
故里飘歌 2020-11-27 15:09

I think this question is already somewhere out there, but I wasn\'t able to find it.

I don\'t understand, why it\'s necessary to have a functional interface to work

6条回答
  •  死守一世寂寞
    2020-11-27 15:42

    A lambda expression is nothing but a shortcut to defining an implementation of a functional interface. It is equivalent to an instance of a functional interface implementation.

提交回复
热议问题