Java 8
-
Core Java

The Power of Java Stream API
Java 8 introduced the Stream API, and it fundamentally changed how we work with collections. Instead of writing verbose loops…
Read More » -
Core Java

Function pointer style in Java
In languages like C and C++, function pointers allow direct reference to a function, enabling callbacks, event handling, and flexible…
Read More » -
Core Java

Working with Time Using Java Instant and Long
Working with timestamps in Java usually involves a choice between high-level types (like Instant) and low-level numeric representations (like long…
Read More » -
Core Java

Java Flatten 2D array Into 1D Array
Arrays are the most basic data structures in any language. Although we don’t work on them directly in most cases,…
Read More » -
Core Java

Optimizing Data Filtering with Java 8 Predicates
Java 8 introduced a powerful functional interface called Predicate that revolutionized data filtering. By providing a concise and expressive way…
Read More » -
Core Java

Guide to CompletableFuture join() vs get()
Java’s CompletableFuture is a powerful tool for asynchronous programming, offering various methods to handle and manipulate future tasks. Among these…
Read More » -
Core Java

Conversion of InputStream to Stream in Java
In this article, we will explore different approaches for InputStream to Stream conversion in Java. 1. Introduction In Java, InputStream…
Read More » -
Core Java

Using Java 8 Optionals: Perform Action Only If All Are Present
Java’s Optional class provides a container object which may or may not contain a non-null value. This is useful for…
Read More » -
Core Java

Implement Elvis Operator in Java 8
In Java 8, the Elvis operator (often written as ?: in Groovy and Kotlin) is not available as a built-in…
Read More »
