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
Intermediate operations are________; they aren't performed until a terminal operation is invoked. This allows library developers to optimize stream-processing performance.
Free
(Multiple Choice)
4.8/5
(40)
Correct Answer:
C
Which of the following statements is false?
Free
(Multiple Choice)
4.8/5
(32)
Correct Answer:
B
Which statement in the following sequence of statements about sorting objects by two fields is false?
Free
(Multiple Choice)
4.7/5
(29)
Correct Answer:
C
Collectors static method ________ returns a Collector that counts the number of objects in a given classification, rather than collecting them into a List.
(Multiple Choice)
4.8/5
(40)
Terminal operations are ________; they perform the requested operation when they are called.
(Multiple Choice)
4.9/5
(32)
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.
(Multiple Choice)
4.8/5
(29)
Stream mutable reduction operation ________creates an array containing the results of the stream's prior operations.
(Multiple Choice)
4.8/5
(31)
Map method ________ performs an operation on each key-value pair.
(Multiple Choice)
4.9/5
(29)
Collectors static method groupingBy with two arguments receives a Function that classifies the objects in the stream and another Collector (known as the ________ Collector).
(Multiple Choice)
4.9/5
(40)
Prior to Java SE 8, Java supported three programming paradigms. Java SE 8 added ________.
(Multiple Choice)
4.8/5
(40)
Stream method ________ maps objects to double values and returns a DoubleStream. The method receives an object that implements the functional interface ToDoubleFunction (package java.util.function).
(Multiple Choice)
4.9/5
(37)
Class Array's ________ method is used to create a Stream from an array of objects.
(Multiple Choice)
4.8/5
(40)
Map method entrySet returns a Set of Map.Entry objects containing the Map's ________.
(Multiple Choice)
4.9/5
(30)
The intermediate Stream operation ________ results in a stream containing only the unique elements.
(Multiple Choice)
4.9/5
(35)
________ is a method reference for an instance method of a class. It creates a one-parameter lambda that invokes the instance method on the lambda's argument and returns the method's result.
(Multiple Choice)
4.8/5
(33)
Showing 1 - 20 of 67
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)