Based on https://www.udemy.com/course/modern-java-learn-java-8-features-by-coding-it/
- Most popular and widely accepted language in the world.
- Java community wanted to introduce the
functional featutessuch as:- lambdas
- streams
- Optional etc
- To keep up with technological and advancements with mobiles/ laptops/ systems
- Simplify the concurrency operations
- Embraces immutable object creation
- More concise and readable code
- Using functions methods as first class citizens
- Write code using
Declerativeapproach
- Focuses on how to perform the operations
- Embraces object mutability
- Lists the step by step instructions on how to achieve an objective
- We write the code on what needs to be done in each step.
- Imperative style is used with classic object oriented programming.
- Focuses on what is the result you want.
- Embraces object immutability
- Analogous to SQL
- Use te functions that are already part of the library to achieve an objective.
- Functional programming uses the declarative style of programming.