Functional Programming: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
Closures and recursion are at the base of the ''functional programming'' paradigm. | Closures and recursion are at the base of the ''functional programming'' paradigm. | ||
Java 8 introduced [[Java 8 Lambda Expressions#Overview|lambda expressions]], which allow [[#Behavior_Parameterization|behavior parameterization]] and functional programming. | [[Java#Java_8|Java 8]] introduced [[Java 8 Lambda Expressions#Overview|lambda expressions]], which allow [[#Behavior_Parameterization|behavior parameterization]] and functional programming. | ||
=Behavior Parameterization= | =Behavior Parameterization= |
Revision as of 17:03, 21 March 2018
Internal
Overview
Closures and recursion are at the base of the functional programming paradigm.
Java 8 introduced lambda expressions, which allow behavior parameterization and functional programming.
Behavior Parameterization
Prior to Java 8, behavior parameterization was possible with anonymous classes. In Java 8, functions can be explicitly passed to the API, as parameters, and returned as results.