in28minutes
Home
Roadmaps
Flashcards
Bookshelf
Subscribe
Functional Programming
Functional Programming - 10 Cards
Click here to toggle all cards
Functional Programming
Functions are like values, can be passed and returned
Lambda Expression
Short-hand syntax for defining functions in Java
Stream
Sequence of elements
Stream API
A collection of methods in Java for processing streams of data in a functional manner
Intermediate Operations
Stream operations that produce another stream as output, such as filter, map, and flatMap
Terminal Operations
Stream operations that produce a single result, such as reduce, collect, and forEach
Optional class
Allow graceful handling of nulls
Functional Interface
Interfaces in Java that define a single abstract method, used as the basis for creating lambda expressions
Method References
Simplify creation of Lambda Expressions
Example Method Reference
Lambda "l -> System.out.println(l)" can be replaced with "System.out::println"