How to use groupingBy Collector in Java Streams

How to use groupingBy Collector in Java Streams

Hey, Tea lovers! Today we will talk about the groupingBy Collector method of Java Stream API. Yes, it is similar to GROUP BY of SQL since it groups and collects the objects based on a given condition or value. In case you want to get familiar with the Stream API, I recommend you to read the post " Be More Functional with Java’s Functional Interfaces" and " Stream API: The Hero Without a Cape". These will help you understand the post and might refresh your memory if you already know. Prepare your tea then, to sip and code. ...

October 15, 2020 · 5 min · Imran Shaikh
Interview Question: Final vs Finally vs Finalize

Interview Question: Final vs Finally vs Finalize

Hey, Tea Lovers! Today let’s look at the most asked, tricky, and fumbled interview question i.e. What is the difference between final, finally, and finalize in Java? Most beginners face this question. The thing is, only their names are the same the work is completely unrelated. I know you are in a hurry to prepare for the interview, so I will make this post as short as possible. But before reading, prepare your cup of tea to sip and code. ...

October 14, 2020 · 6 min · Imran Shaikh
EclipsePlugin

Every Programmer Needs these Eclipse IDE Plugins

Hey, tea lovers! Today we are going to talk about the Eclipse IDE Plugins that every programmer must have. These plugins help you to boost your productivity. These are free-to-use plugins and don’t require too much effort to set up. This post is one of the series on Plugins or Extensions every Programmer needs for their IDE. We already discussed these for IntelliJ IDEA and VSCode. Please check them out. Let’s just jump right into it and explore these plugins. But before preparing your cup of tea sip and code. ...

October 6, 2020 · 5 min · Mahesh More
Basic to Advance ways to iterate over a List in Java (1)

Basic to Advance ways to iterate over a List in Java

Hey, Tea Lovers! Collection Framework is a very powerful library in Java. Every update in Java adds some more interesting features to this. Today, we will go over how you can iterate over a List, be it ArrayList, LinkedList, or any other. We will take a look at them in ascending order from the basic loop to iteration to Stream API. And also, figure out which one is best suitable for our requirements. So, make your tea and get ready to sip and code. ...

August 27, 2020 · 5 min · Imran Shaikh
Things to love in Java 11

The Things I Love and Use from Java 11

Hey, tea lovers! Since its inception, Java is dying. It is now 25 years old and it is dying. After 10 years again, people will say Java is dying. Well, it is something I and every Java developer are fed up with hearing. Let us keep ignoring it and focus on what Java is providing to keep up with the latest trend or requirements. I will be going over the things I think have improved the productivity of the developer since Java 11. We will talk about Java 11 only since it is LTS (Long Term Support) version and many people are using this only until the next LTS. Make your tea sip and code with Java 11. ...

August 22, 2020 · 5 min · Imran Shaikh
Eclipse IDE Shortcuts to Skyrocket Your Productivity (1)

Eclipse IDE Shortcuts to Skyrocket Your Productivity

Hey, tea lovers! Today we will talk about the Eclipse IDE shortcuts. Eclipse is an Open-source & Powerpack IDE. Believe it or not, almost every Java Developer has used this IDE. In fact, in most organizations, you will find that developers are using Eclipse IDE. Its extensive plugins & customization add-on system make it easy to use and enhance the developer experience. In the market, we have many IDE but eclipse provides all the functionality free of cost, unlike IntelliJ IDEA. It supports and distributes many languages along with Java, such as C/C++, PHP, etc. So having hands-on Eclipse makes it easy to code in any language without changing IDE. ...

August 20, 2020 · 6 min · Mahesh More
A Day in the Life of Java Code in JVM

A Day in the Life of Java Code in JVM

Hey, Tea Lovers! Today we will talk about Java Memory Management with the example. We will look at the code and then how it is affecting the JVM. So the relationship between these 2. I will try to explain it line by line. So let us see how a code lives its life. It is part of the JVM post series “Get Ready to Deep Dive Java Memory Management”. Before we explain examples first we will understand the java rules for java memory allocation. ...

July 3, 2020 · 5 min · Mahesh More
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