Functional Intefaces Flashcards

1
Q

What is an Functional Interface?

A

It is an inteface that has only one abstract method.

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

What operation does the Consumer interface represent?

A

Represents an operation that accepts a single input argument and returns no result. Object in and nothing outs.

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

What operation does the Predicate interface represent?

A

Represents a predicate (boolean-valued function) of one argument.

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

What operation does the Supplier interface represent?

A

Represents an operation that accepts no argument and returns a result. Nothing in object outs.

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

What operation does the Function interface represent?

A

Represents a function that accepts one argument and produces a result.

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

What operation does the UnaryOperator represent?

A

Represents a function that accepts and returns the same type.

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