-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2020-01-02:分别通过对象表达式object和lambda表达式实现的函数式接口内部有何不同? #224
Labels
Comments
好像没有大致的区别,lambda只支持一个函数体而object可以是多个,还有一个区别就是以闭包的形式实现lambda还可以传递某个方法的作用域 |
没有感觉有多大区别,或者我没有那么熟悉 |
写setOnclickLister 和setOnItemClickLisernter就很明显了,lambda适用于一个回调的场景 |
1.object是匿名内部类的形式,匿名内部类是在编译后形成一个class |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: