Be more Functional with Java's Functional Interfaces

Monitor Your Java Memory with these Tools

Hey Tea lovers! Today, we will talk about Java memory monitoring tools. You will need them when you want to see how well or worst your code is performing, or if you don’t know what’s going on in there. I have added not only the information about them but also videos showing how to use them in brief. It is the continuation of the post series This is the continuation of the post series “Get Ready to Deep Dive Java Memory Management”. ...

July 3, 2020 Â· 4 min Â· Imran Shaikh
StackHeapvarbleRef-2

Get Ready to Deep Dive in Java Memory Management: Garbage Collector

Hey Tea lovers! This post is about garbage collectors in Java. This is the continuation of the post series “Get Ready to Deep Dive Java Memory Management”. In Java memory management, a Garbage collector is the process by which Java programs perform automatic memory management. This is a more complicated process than just garbage collecting and freeing up memory. The garbage collector is expensive to process which leads to a stop-the-world event. ...

July 2, 2020 Â· 8 min Â· Mahesh More
Untitled-Diagram

Get Ready to Deep Dive in Java Memory Management: Structure of JVM Memory

Hey, Tea Lovers! Today we will talk about Java Memory Management. Memory management is the process of the allocation & de-allocation of objects from a memory and it’s done automatically with the help of a garbage collector. As Java programmers, we do not bother about java memory management as Java has an automatic garbage collector that works in the background to clean up unused objects and free up java memory. ...

July 2, 2020 Â· 7 min Â· Mahesh More
Reduce NullPointerException with Optional in Java 8 & Beyond

Reduce NullPointerExceptions with Optional in Java

Hey, Tea Lovers! Today we will talk about the Optional class in Java 8. But before that, Did you know that Tony Hoare, The inventor of the null reference, has said that the null reference is his “Billion Dollar Mistake”? Since NullPointerException is the most common and frequently appeared error compared to others, especially for Java developers. I have seen people wrapping each code block in a try-catch to handle this sneaky fool. That’s how much we are scared of this exception. ...

June 23, 2020 Â· 7 min Â· Imran Shaikh
Say Good-Bye to Boilerplate Code with Lombok (1)

Say Good-Bye to Boilerplate Code with Lombok: Part 2-The Code

Hey! Tea Lovers! We will discuss How to use Lombok in our code. It’s the continuation of our previous post " Say Good-Bye to Boilerplate Code with Lombok: Part 1-Installation". In which we looked at what Lombok is and how to install it in Eclipse or IntelliJ IDEA. Now, we will look at how we can use the Lombok library in our code. How to Use Lombok To use Lombok please be ready with the installation and dependencies which we discussed in the previous part. ...

June 19, 2020 Â· 6 min Â· Imran Shaikh
Project Lombok (1)

Say Good-Bye to Boilerplate Code with Lombok: Part 1-Installation

Hey! Tea lovers! Before talking about Lombok, what are the things that irritate us Java Developers the most? Well yes, hearing “Java is dying” from a Python developer is irritating but it is the second thing. The first one is the boilerplate code. We write it almost every time. Setters and getters, constructors, toString, and many others for simple POJO classes. Of course, IDE can generate this code for you but again, your simple POJO class then becomes redundant. And the only things that matter in the POJO are the fields, so why not write fields only and let the compiler handles the rest of the things? And that’s where Project Lombok comes into the picture. ...

June 19, 2020 Â· 4 min Â· Imran Shaikh
A Quick Glance at Sorting Algorithms Code in Java

A Quick Glance at Sorting Algorithms Code in Java

Hey! tea lover! This post is not a tutorial, just code samples of different sorting algorithms you can see before going to the interview. I have written the algorithms in Java. There is little to no explanation, just pure simple code for you to quickly glance through it. The purpose of making this is to put all the sorting algorithms Java code in one place only. You can see the whole Data Structure and Algorithms project on GitHub. ...

June 7, 2020 Â· 6 min Â· Imran Shaikh
Create Your Own Instant Messaging Chat Application With Spring

Create Your Own Instant Messaging Chat Application With Spring

Social Media is what drives this world now. The first thing we do when we get a new smartphone is, install social media apps such as Facebook, Instagram, Whatsapp, etc. They all are different in their way, but what is common between these apps is the chat function. They provide users with a real-time chat with the other person or chatbot. The message gets instantly delivered to another person and receives a reply at that speed too. But the question is, how do they communicate in real-time? What is it that they using? And most importantly, how to make one by yourself? ...

May 15, 2020 Â· 10 min Â· Imran Shaikh
Install Latest or Any Java Version in 3 Simple Steps: Windows

Install Latest or Any Java Version in 3 Simple Steps: Windows

Hey! Tea lovers. Let us talk about the first baby step we take into the Java world. And that’s the installation of Java Development Kit aka JDK. There are only 3 steps to set up JDK, without the installer. You can have multiple versions of JDK at the same time and switch between them very easily. Prepare your tea and let us see those 3 magical steps. TL;DR This post discusses the installation of JDK on the Windows system. We will be discussing other operating systems such as Ubuntu and Centos. The JDK I am utilizing for the aforementioned post is OpenJDK 13. We have JDK 14 as well but it’s an early release and might have bugs. So we won’t be using that. ...

May 15, 2020 Â· 4 min Â· Imran Shaikh
You Only Need These 7 IntelliJ IDEA Shortcuts to Skyrocket Your Productivity (1)

You Only Need These 7 IntelliJ IDEA Shortcuts to Skyrocket Your Productivity 

IntelliJ IDEA, by far, is the most productive and beautiful IDE out there for Java development. It features so many shortcuts and useful utilities, that I bet even the creators would have forgotten. These IntelliJ IDEA shortcuts can skyrocket your productivity while coding. To be honest, you don’t need to learn every shortcut, only a handful of them are used daily, and the following commands are even more common. These select few are enough for the everyday life of a programmer. ...

May 14, 2020 Â· 5 min Â· Imran Shaikh