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.

Nested Classses

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).

Static initializers or member interfaces can not be declared in a local class. But a local class can have static members provided that they are constant variables.

Anonymous Classes

Clone this wiki locally