Category Java

Java tutorials

Java Streams: stream creation with examples

Streams let us do computation on the collection of data in a declarative way, (rather than specifying how to do, we specify what to do). To perform a computation, stream operations are composed into a stream pipeline. A stream pipeline consists of a source, zero or more intermediate operations, and a terminal operation. Streams are lazy; computation on the source data is only performed when the terminal operation is initiated.

Super Fast Garbage Collectors in Java

Garbage Collection

Introduction GarbageCollection: There are many technical definitions but in layman terms, it’s just an automated way to collect un-referenced or un-used (garbage) objects from memory and efficiently utilize the memory available for the application. Urghh!! Yet another technical definition.. From…

Functional Programming in Java


Functional programming is a programming paradigm where programs are constructed by applying and composing functions. It is a declarative programming paradigm in which function definitions are trees of expressions that each return a value, rather than a sequence of imperative statements which change the state of the program wikipedia Java 8 introduced functional programming in the form of Lambda.…