Skip to content

Java SE Home

peddi-dev edited this page Mar 11, 2019 · 10 revisions

Java Standard Edition(SE) Home

Java Streams API

Eager vs Lazy Stream Operations

In the Streams API, operations that return a stream are lazy, and operations that return a non-stream result (or return no result, such as forEach()) are eager.

Java Local Classes

Local classes are classes that are defined in a block, which is a group of zero or more statements between balanced braces. Typically local classes are defined in the body of a method.

Local class can be defined inside any block (see Expressions, Statements, and Blocks for more information).

Clone this wiki locally