A browser with JavaScript enabled is required for this page to operate properly. Lesson: Classes and Objects Lambda Expressions One issue with anonymous classes is that if the implementation of your anonymous class is very simple, such as an interface that contains only one method, then the syntax of anonymous classes may seem unwieldy and unclear. In these cases, you're usually trying to pass functionality as an argument to another method, such as what action should be taken when someone clicks a button. Lambda expressions enable you to do this, to treat functionality as method argument,
Read full article from Lambda Expressions (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
No comments:
Post a Comment