Chapter 8 - Lambdas Flashcards

(3 cards)

1
Q

What is the definition of functional interface

A

An interface with just one single abstract method declaration.

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

Name the methods that are not allowed in an interface to be called a functional interface

A

Objects inherited methods
toString()
hashCode()
equals(Object o)

They can be coded in an interface but they don’t count towards single abstract method in a functional interface

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

Method reference types

A

Calling static methods

Calling instance methods on a object

Calling instance methods on a parameter

Constructor

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