Stream method findFirst is a short-circuiting terminal operation that processes the stream pipeline and terminates processing as soon as the first object from the stream pipeline is found. The method returns a(n) ________ containing the object that was found, if any.

a. Optional
b. Discretionary
c. Elective
d. Extra


a. Optional.

Computer Science & Information Technology

You might also like to view...

All of the following are names for a flash drive EXCEPT ________ drive

A) thumb B) jump C) USB D) hard

Computer Science & Information Technology

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.

Computer Science & Information Technology

Zacharias Moussaoui was born in ________

a. France b. London c. Morocco d. None of the above

Computer Science & Information Technology

Sending electronic documents is a way to contribute to _____ computing.

A. electronic B. brown C. hardcopy D. green

Computer Science & Information Technology