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
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
You Must have these IntelliJ IDEA Plugins

Every Programmer Needs these IntelliJ IDEA Plugins

Hey, Tea Lovers! Today we will talk about the top IntelliJ IDEA plugins every programmer should have. These IntelliJ plugins help us, programmers, to be more productive and make our life easy. This post is one of the series on Plugins or Extensions every Programmer needs for their IDE. We already discussed these for Eclipse IDE and VSCode. Please check them out. A few of the plugins are for some fun and some are dependent on what you do. This post is an addition to our post series to improve your productivity through IDEs. We already have written posts like, " You Only Need These 7 IntelliJ IDEA Shortcuts to Skyrocket Your Productivity" and " Eclipse IDE Shortcuts to Skyrocket Your Productivity". We will be uploading the must-have plugins for Eclipse. ...

October 3, 2020 · 5 min · Imran Shaikh
Communicate-over-SSL-in-Java_7edacef98657aa8a7e08fb16543c0986

How to Add SSL or TLS Certificate in Java

Hey, Tea Lovers! Today we are going to set up the SSL or TLS certificate for securing our communication with another server. If your Java code is trying to connect to DB over SSL\TLS or calling an HTTPS API then you will be needing that server’s root certificate. We will add SSL or TLS Certificate in Java. To add a certificate via a keytool you have the following options. Insert in Java’s Truststore or Create your own Truststore if don’t have permission. Why Insert SSL certificate in Java When communicating over SSL or TLS Java authenticates the host. If you don’t tell Java that I trust this host then it will throw the following error. ...

September 15, 2020 · 4 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
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