100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

Java Exam CH. 17 UPDATED ACTUAL Exam Questions and CORRECT Answers

Puntuación
-
Vendido
-
Páginas
19
Subido en
24-06-2025
Escrito en
2024/2025

Java Exam CH. 17 UPDATED ACTUAL Exam Questions and CORRECT Answers

Institución
JAVA
Grado
JAVA










Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
JAVA
Grado
JAVA

Información del documento

Subido en
24 de junio de 2025
Número de páginas
19
Escrito en
2024/2025
Tipo
Examen
Contiene
Desconocido

Temas

Vista previa del contenido

Java Exam CH. 17 UPDATED ACTUAL Exam Questions and
CORRECT Answers


Which of the following statements is false?

a. Functional interfaces are also known as single abstract method (SAM) interfaces.
b. Package java.util.function contains six basic functional interfaces BinaryOperator, Consumer,
Function, Predicate, Supplier and UnaryOperator.

c. There are many specialized versions of the six basic functional interfaces for use with int, long
and double primitive values. There are also generic customizations of Consumer, Function and
Predicate for binary operations—that is, methods that take two arguments.

d. All of these statements are true - All of these statements are true


The basic generic functional interface ________ in package java.util.function contains method
apply that takes two T arguments, performs an operation on them (such as a calculation) and
returns a value of type T.

a. Consumer<T>

b. Function<T,R>
c. Supplier<T>

d. BinaryOperator<T> - d. BinaryOperator<T>


The basic generic functional interface ________ in package java.util.function contains method
accept that takes a T argument and returns void. Performs a task with its T argument, such as
outputting the object, invoking a method of the object, etc.

a. Consumer<T>

b. Function<T,R>

c. Supplier<T>

d. BinaryOperator<T> - a. Consumer<T>

,The basic generic functional interface ________ in package java.util.function contains method
apply that takes a T argument and returns a value of type R. Calls a method on the T argument
and returns that method's result.

a. Consumer<T>

b. Function<T,R>

c. Supplier<T>

d. BinaryOperator<T> - b. Function<T,R>



The basic generic functional interface ________ in package java.util.function contains method
test that takes a T argument and returns a boolean. Tests whether the T argument satisfies a
condition.

a. Consumer<T>

b. Function<T,R>

c. Supplier<T>
d. Predicate<T> - d. Predicate<T>



The basic generic functional interface ________ in package java.util.function contains method
get that takes no arguments and produces a value of type T. Often used to create a collection
object in which a stream operation's results are placed.
a. Consumer<T>

b. Function<T,R>

c. Supplier<T>

d. BinaryOperator<T> - c. Supplier<T>



The basic generic functional interface ________ in package java.util.function contains method
get that takes no arguments and returns a value of type T.

a. UnaryOperator<T>

b. Function<T,R>
c. Supplier<T>

, d. BinaryOperator<T> - a. UnaryOperator<T>



A lambda expression represents a(n) ________ method—a shorthand notation for implementing
a functional interface.

a. functional

b. unnamed

c. undesignated
d. anonymous - d. anonymous



The type of a lambda is the type of the ________ that the lambda implements.

a. anonymous class

b. functional interface

c. stream

d. collection - b. functional interface


Which of the following statements is false?

a. Lambda expressions can be used anywhere functional interfaces are expected.

b. A lambda consists of a parameter list followed by the arrow token and a body, as in:

[parameterList] -> {statements}

c.Method references are specialized shorthand forms of lambdas.

d. Each of the above statements is true - b. A lambda consists of a parameter list followed by the
arrow token and a body, as in:

[parameterList] -> {statements}

Actually, a lambda consists of a parameter list followed by the arrow token and a body, as in:
(parameterList) -> {statements}



Which of the following statements is false?
a. A lambda that receives two ints, x and y, and returns their sum is
$12.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor
Seller avatar
GradeVaultAcademy

Documento también disponible en un lote

Conoce al vendedor

Seller avatar
GradeVaultAcademy Havard School
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
2
Miembro desde
6 meses
Número de seguidores
0
Documentos
841
Última venta
4 meses hace
GradeVault Academy.

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes