Java 8

An Overview of Apache Beam Features

Reading Time: 3 minutes We’ll talk about Apache Beam in this guide and discuss its fundamental concepts. We will begin by showing the features and advantages of using Apache Beam, and then we will cover basic concepts and terminologies. Ever since the concept of big data got introduced to the programming world, a lot of different technologies and frameworks have emerged. The processing of data can be categorized into Continue Reading

Lambda Expression in Java 8

Reading Time: 3 minutes In this blog we will understand what is the lambda expression and why we need lambda expression and how we use lambda and about the functional interface. What is Lambda Expression : It is an anonymous function. Not having name No return type and no modifiers. Syntax of Lambda : The syntax of a lambda consists of the following: A comma-separated list of formal parameters Continue Reading

Java8 Futures: Introduction & Best Practices

Reading Time: 3 minutes Hi there! Today, we are going to talk about Futures in Java. We will also look at some of the best practices related to them. What are Java Futures and why do we need them? To understand this better, firstly we must understand what is blocking and why is it bad for our software. BLOCKING – A blocking/long-running call occurs when a thread is tied Continue Reading

Lambda Expressions: An Introduction in Java 8

Reading Time: 2 minutes Lambda expressions were one of the new features that was introduced in Java 8. They help clean up verbose code by providing a concise and local way to reduce redundancy by keeping code short and self-explanatory. In addition to saving code, Java’s lambda expressions are important in functional programming. They allow developers to write in a functional style by acting as functions without belonging to Continue Reading

Operations in Java Streams

Reading Time: 3 minutes Hi guys, with release of Java 8 we get new features like lambda functions, streams etc. and in this blog we are going to have an overview of Streams.Streams reduces the effort for using and accessing the elements in any Collection. So here we will see what are different types of operation in Streams and when to use them. Streams Definition Streams are used when Continue Reading

Functional Java: It’s good to be lazy

Reading Time: 5 minutes In Java, we are often tempted towards writing a code which is executed eagerly. There’s a good reason for that – eager code is easy to write and to reason about. But delaying commitments until the last responsible moment is a good agile practice. When executing the code, we can gain performance by being just a little lazy.  In this blog, we will try to Continue Reading

Merge Lists of Map to Map, Java 8 Style!

Reading Time: 3 minutes Today, while doing my work and having fun programming, I came across a problem that looked pretty easy in the beginning, but after starting doing it, had to take help of Google and read from different sites to get to a nice implementation. So, let’s look at the problem and how to solve it. The Problem Well, you guys probably already have guessed what the Continue Reading

Java concurrency: Reentrant Locks

Reading Time: 3 minutes Hello readers! Welcome to another blog in the Java concurrency series. Today, we are going to look at the Reentrant Locks in Java. What it is, how to use it, and mainly, what is the difference between using Reentrant Locks and synchronization. So, let’s dive straight into it. Reentrant Locks Reentrant locks work just like the synchronized locks in java, but have much more facilities Continue Reading

Java Concurrency: Count Down Latches

Reading Time: 2 minutes Hello readers, and welcome to yet another blog in the Java Concurrency series. Today, we are going to look at the CountDownLatch class in Java, what it is and how to use it. So, let’s dive straight into it.

How to deal with Inheritance while using Lombok builder

Reading Time: 2 minutes Today, I came across a problem and found a beautiful solution for it, which is pretty much straight forward, but the problem may occur to anyone while using the Lombok Library for java. So let’s look at the problem. The Problem I have a class Person, which consists of some fields. It is annotated with the @Builder annotation of lombok, so that lombok can generate Continue Reading

Java Concurrency: Thread Confinement

Reading Time: 3 minutes Hello readers! In this blog, we are going to explore about Thread Confinement, what it means and how do we achieve it. So, let’s dive straight into it.

Java Concurrency: Atomic Variables

Reading Time: 3 minutes In today’s blog, we will be discussing and understanding the use of atomic variables with regards to concurrency in Java. But before understanding atomic variables, let’s understand what do we mean by atomic or atomicity.