Interview Question- IS-A & HAS-A Relationship

Interview Question: IS-A & HAS-A Relationship

Hey, Tea Lovers! Today let’s look at the most asked interview question, IS-A.)& HAS-A relationship. Both beginners and experienced people get this question in their interviews. This post is one of the many in the series of Interview Questions, where we don’t just hang you with one line answer, but rather try to explain it so that it gets fits into your head. I know you are in a hurry to prepare for the interview, so I will make this post as short as possible, So prepare your cup of tea to sip and code. ...

November 29, 2020 · 5 min · Mahesh More
Most Loved Interview Question _ Comparator vs Comparable

Interview Question: Comparable vs Comparator

Hey, Tea Lovers! Today let’s look at the most asked interview question, Comparable vs Comparator. Both beginners and experienced people get this question in their interviews. This post is one of the many in the series of Interview Questions, where we don’t just hang you with one line answer, but rather try to explain it so that it gets fits into your head. I know you are in a hurry to prepare for the interview, so I will make this post as short as possible, So prepare your cup of tea to sip and code. ...

November 14, 2020 · 11 min · Mahesh More
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
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
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
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
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