• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 3 fuera de 30 páginas
Examen

Java Exam CH. 17 2025 Questions and Answers

Document preview thumbnail
Vista previa 3 fuera de 30 páginas

Java Exam CH. 17 2025 Questions and Answers

Vista previa del contenido

Java Exam CH. 17 2025 Questions
and Answers


Prior to Java SE 8, Java supported three programming paradigms. Java SE 8 adds

________.


a. procedural programming


b. object-oriented programming


c. generic programming


d. functional programming. - ANSWER✔✔-d. functional programming


The new language and library capabilities that support functional programming were

added to Java as part of Project ________.


a. Utilitarian


b. Upsilon


c. Lambda


d. Utility - ANSWER✔✔-c. Lambda

,Which of the following statements is false?


a. Prior to functional programming, you typically determined what you wanted to

accomplish, then specified the precise steps to accomplish that task.


b. Using a loop to iterate over a collection of elements is known as external iteration and

requires accessing the elements sequentially. Such iteration also requires mutable

variables. External iteration is easier to parallelize.


c. Letting the library determine how to iterate over a collection of elements is known as

internal iteration.


d. Functional programming focuses on immutability—not modifying the data source

being processed or any other program state - ANSWER✔✔-b. Using a loop to iterate

over a collection of elements is known as external iteration and requires accessing the

elements sequentially. Such iteration also requires mutable variables. External iteration

is easier to parallelize. Actually, internal iteration is easier to parallelize.


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 - ANSWER✔✔-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> - ANSWER✔✔-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> - ANSWER✔✔-a. Consumer<T>

Información del documento

Subido en
8 de mayo de 2025
Número de páginas
30
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$12.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
KatelynWhitman
3.6
(260)
Vendido
1253
Seguidores
485
Artículos
43943
Última venta
2 días hace




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