Given:
What is the output?
A compilation error is thrown.
Message from Copier: Attempt00
Message from Abstract Copier: Attempt00
A runtime error is thrown.
Which statement about a functional interface is true?
It must be defined with the public access modifier.
It must be annotated with @FunctionalInterface.
It is declared with a single abstract method.
It is declared with a single default method.
It cannot have any private methods and static methods.
and:
Which code, when inserted on line 10, prints the number of unique localities from the roster list?
.map(Employee::getLocality)
.distinct()
.count();
map(e −> e.getLocality())
.map(e −> e.getLocality())
.collect(Collectors.toSet())
.filter(Employee::getLocality)
What is the result?
It throws a runtime exception.
Value of Euler = 2.71828
The code does not compile.
Value of Euler = “2.71828”