Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Java How To Program
Quiz 17: Lambdas
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
Multiple Choice
The type of a lambda is the type of the ________ that the lambda implements.
Question 2
Multiple Choice
The intermediate Stream operation ________ results in a stream containing only the unique elements.
Question 3
Multiple Choice
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.
Question 4
Multiple Choice
Prior to Java SE 8, Java supported three programming paradigms. Java SE 8 adds ________.
Question 5
Multiple Choice
Which of the following statements is false?
Question 6
Multiple Choice
Which of the following statements is false?
Question 7
Multiple Choice
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.
Question 8
Multiple Choice
Which of the following statements is false?
Question 9
Multiple Choice
The basic generic functional interface ________ in package java.util.function contains method get that takes no arguments and returns a value of type T.
Question 10
Multiple Choice
Intermediate Stream operation ________ results in a stream with the specified number of elements from the beginning of the original stream.
Question 11
Multiple Choice
Intermediate Stream operation ________ results in a stream in which each element of the original stream is mapped to a new value (possibly of a different type) -e.g., mapping numeric values to the squares of the numeric values. The new stream has the same number of elements as the original stream.
Question 12
Multiple Choice
Intermediate operations are________; they aren't performed until a terminal operation is invoked. This allows library developers to optimize stream-processing performance.
Question 13
Multiple Choice
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.
Question 14
Multiple Choice
The intermediate Stream operation ________ results in a stream containing only the elements that satisfy a condition.
Question 15
Multiple Choice
What is the meaning of ( ) in the following lambda? () -> System.out.println("Welcome to lambdas!")
Question 16
Multiple Choice
A lambda expression represents a(n) ________ method-a shorthand notation for implementing a functional interface.
Question 17
Multiple Choice
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.