Java: Streams & Lambda
36 cards · 🇺🇸 English
Functional-style operations with Java Streams and lambda expressions.
Study all 36 cards for free
Flashcards, quizzes, pixel-art games and a daily review that remembers for you.
Try the first 10 cards
1 / 10WORA in Java
Tap the card for the answer · swipe right if you knew it, left if not
Already have an account? Sign in
Cards
- 1WORA in JavaWrite Once, Run Anywhere - compiled Java code can run on all platforms that support Java without recompiling
- 2Lambda expression in JavaAn anonymous function that can be passed as an argument or assigned to a variable, introduced in Java 8 for functional programming
- 3Stream API in JavaA functional programming feature for processing sequences of elements, supporting operations like filter, map, and reduce
- 4Functional interfaceAn interface with exactly one abstract method that can be implemented using a lambda expression
- 5Syntax of a lambda expression(parameters) -> expression or (parameters) -> { statements; }
- 6Method reference in JavaA shorthand notation for calling a method, written as ClassName::methodName, that can replace a lambda expression
- 7Filter operation in Stream APIAn intermediate operation that returns a stream with elements matching a predicate
- 8Map operation in Stream APIAn intermediate operation that transforms each element in the stream using a function
- 9Reduce operationA terminal operation that combines stream elements into a single result using an accumulator function
- 10intermediate vs terminal operationsIntermediate operations are lazy and return a stream; terminal operations trigger computation and return a result
- 11ForEach in Stream APIA terminal operation that performs an action for each element in the stream
- 12Collect in Stream APIA terminal operation that accumulates stream elements into a collection or other result container
- 13Parallel streamsStreams that process elements in parallel using multiple threads for improved performance on multi-core systems
- 14Create a parallel streamCall .parallelStream() on a collection or .parallel() on an existing stream
- 15FindFirst operationA terminal operation that returns an Optional containing the first element of the stream
- 16AnyMatch operationA terminal operation that returns true if any element in the stream matches the predicate
- 17Optional in JavaA container object that may or may not contain a non-null value, used to avoid NullPointerException
- 18FlatMap in Stream APIAn intermediate operation that flattens nested streams, transforming each element into a stream and concatenating them
- 19Distinct in Stream APIAn intermediate operation that returns a stream with duplicate elements removed
- 20Sorted in Stream APIAn intermediate operation that returns a stream with elements sorted according to natural order or a comparator
- 21Limit in Stream APIAn intermediate operation that truncates the stream to contain no more than a specified number of elements
- 22Skip in Stream APIAn intermediate operation that discards the first n elements of the stream
- 23Count in Stream APIA terminal operation that returns the number of elements in the stream
- 24Predicate functional interfaceA functional interface representing a boolean-valued function of one argument, used for filtering
- 25Function functional interfaceA functional interface representing a function that accepts one argument and produces a result
- 26Consumer functional interfaceA functional interface representing an operation that accepts a single input and returns no result
- 27Supplier functional interfaceA functional interface representing a supplier of results, taking no arguments and producing a value
- 28Lazy evaluation in streamsIntermediate operations are not executed until a terminal operation is invoked, optimizing performance
- 29Java.util.stream packageThe package containing classes and interfaces for functional-style operations on streams of elements
- 30Benefit of using streams over loopsMore concise and readable code, automatic parallelization, and better separation of concerns
And 6 more cards. Study the whole deck free
Articles about this deck
More Programming decks
See all- ☕
Java: Core Concepts & OOP
73 cards · 🇺🇸 English
Core Java syntax and object-oriented programming fundamentals.
- ☕
Java: Collections Framework
60 cards · 🇺🇸 English
Lists, sets, maps, and the core Java Collections Framework interfaces.
- 🧱
Data Structures
95 cards · 🇺🇸 English
Arrays, linked lists, trees, graphs, hash tables and their core operations.
- 🟣
C#: Fundamentals & .NET Core
99 cards · 🇺🇸 English
Core C# syntax, types, and .NET Core concepts in one deck.
- 🌐
APIs: REST, GraphQL & HTTP Status Codes
108 cards · 🇺🇸 English
REST and GraphQL API concepts plus common HTTP status codes.
- 🎨
CSS: Box-Modell, Selektoren & Media Queries
129 cards · 🇺🇸 English
Das CSS-Box-Modell, Selektortypen, Media Queries und Animationen.
