Java 8 Specifics Flashcards

1
Q

Behavior parameterization means Strategy Pattern, Function as Object

A

functors with syntax as Anonymous Class or lambda function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly