Hello guys, in this blog we are going to talk about the different areas of memory that JVM creates and handles throughout the lifecycle of a program. In this blog, I have tried my best to explain in detail with examples and diagrams.

Before diving deep, let us see how…


Hello guys, in this blog, we are going to talk about the new methods which were introduced in Java 8. Following are the ones which we will look into in detail.

  • computeIfAbsent
  • computeIfPresent
  • compute
  • merge

Initially, we will look into the basic examples of each one of them, and later…


Hello guys, I am back with a new blog and in this blog, we are going to talk about some important aspects of Java such as

  • Difference between JDK, JRE, and JVM
  • The Java Compiler
  • Internals of JVM

Let us first start with the differences between JDK, JRE, and JVM.


Hello guys, in this blog we are going to talk about the CompletableFuture which was introduced in Java 8. But before looking into it, let me give you some background of the Future.

Futures were introduced in Java 5. They are basically placeholders for a result of an operation that…


Hello guys, after looking into some intense topics, it is time to pick some simple ones. So, in this blog, we are going to talk about String class and String Pool. Let us begin…

String class is one of the widely used classes all around the globe. It is used…


Welcome back guys, this blog is a continuation of the previous blog where we talked about Threads and Executor Framework. If you haven’t visited, here is the link.

Hi In the previous blog, I mentioned about a new thread pool in the Executor Framework named newWorkStealingPool, which was introduced in…


Hello guys, in this blog we are going to talk about a very important topic, that is threads. We will first start with what is thread and how it is different from a process, how we can create a thread in different ways, and later on, we will deep dive…


Hello guys, I am back with the new blog and in this blog, we will discuss best practices to handle exceptions. Let us get started…

  1. Cleaning Up Resources in the Finally Block

If you use any resource for example InputStream, it is very important to release the resource or close…


Hello guys, I am back with a new blog. This blog is an extension of two previous blogs listed below. I would recommend you to go through these blogs before starting with this one.

In this blog, we will look into some simple but important points with respect to Type…


Hello guys, this blog is from Java 8 as well as Java 9 and we are going to talk about the interface and its members. Later on, we will see the difference between an interface and an abstract class.

I have already posted a few topics from Java 8. …

Aman Agrawal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store