Java 8 Specifics Flashcards
1
Q
Behavior parameterization means Strategy Pattern, Function as Object
A
functors with syntax as Anonymous Class or lambda function
2
Q
java stream forEach() or filter() lamba the input is the element, not the index of element
A
This is makes sense as stream is the streaming of elements of a “Collection”, not necessarily an array.