Exam 17: Lambdas and Streams
Exam 1: Introduction to Computers, the Internet and Java40 Questions
Exam 2: Introduction to Java Applications; Inputoutput and Operators33 Questions
Exam 3: Introduction to Classes, Objects, Methods and Strings32 Questions
Exam 4: Control Statements: Assignment, and Operators39 Questions
Exam 5: Control Statements: Logical Operators26 Questions
Exam 6: Methods: a Deeper Look38 Questions
Exam 7: Arrays and Arraylists46 Questions
Exam 8: Classes and Objects: a Deeper Look28 Questions
Exam 9: Object-Oriented Programming: Inheritance20 Questions
Exam 10: Object-Oriented Programming: Polymorphism and Interfaces34 Questions
Exam 11: Exception Handling: a Deeper Look27 Questions
Exam 12: Javafx Graphical User Interfaces22 Questions
Exam 13: Javafx Gui20 Questions
Exam 14: Strings, Characters and Regular Expressions26 Questions
Exam 15: Files, Inputoutput Streams, Nio and Xml Serialization30 Questions
Exam 16: Generic Collections36 Questions
Exam 17: Lambdas and Streams67 Questions
Exam 18: Recursion15 Questions
Exam 19: Searching, Sorting and Big O22 Questions
Exam 20: Generic Classes and Methods: a Deeper Look13 Questions
Exam 21: Custom Generic Data Structures17 Questions
Exam 22: Concurrency54 Questions
Exam 23: Accessing Databases With Jdbc34 Questions
Exam 24: Swing Gui Components78 Questions
Exam 25: Graphics and Java 2d19 Questions
Exam 26: Networking13 Questions
Exam 27: Java Persistence Api Jpa16 Questions
Exam 28: Javaserver Faces Web Apps15 Questions
Exam 29: Javaserver Faces Web Apps7 Questions
Exam 30: Swing Gui Components26 Questions
Select questions type
IntStream method ________ (a terminal operation) performs a task on each stream element.
(Multiple Choice)
4.8/5
(36)
________ is an intermediate operation that transforms a stream's elements to new values and produces a stream containing the resulting (possibly different type) elements.
(Multiple Choice)
4.7/5
(31)
You can define your own reductions for an IntStream by calling its ________ method. The first argument is a value that helps you begin the reduction operation and the second argument is an object that implements the IntBinaryOperator functional interface.
(Multiple Choice)
4.9/5
(38)
Intermediate Stream operation ________ results in a stream with the specified number of elements from the beginning of the original stream.
(Multiple Choice)
4.8/5
(34)
You can declare that an interface is a functional interface by preceding it with the @FunctionalInterface annotation. The compiler will then ensure that the interface contains ________; otherwise, it'll generate a compilation error.
(Multiple Choice)
4.7/5
(42)
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.
(Multiple Choice)
4.7/5
(44)
Functional interface Comparator's default method ________ reverses an existing Comparator's ordering.
(Multiple Choice)
5.0/5
(38)
The basic generic functional interface ________ in package java.util.function contains method get that takes no arguments and returns a value of type T.
(Multiple Choice)
4.9/5
(28)
Collectors static method groupingBy with one argument receives a Function that classifies objects in the stream-the values returned by this function are used as the keys in a Map. The corresponding values, by default, are ________ containing the stream elements in a given category.
(Multiple Choice)
4.8/5
(39)
Stream method ________ eliminates duplicate objects in a stream.
(Multiple Choice)
4.8/5
(32)
The type of a lambda is the type of the ________ that the lambda implements.
(Multiple Choice)
5.0/5
(35)
The intermediate Stream operation ________ results in a stream containing only the elements that satisfy a condition.
(Multiple Choice)
4.9/5
(41)
Showing 41 - 60 of 67
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)