Call By Value & Call By Reference in Java

Call By Value & Call By Reference in Java

Hey, Tea Lovers! Today we will take a look at the basic but tricky interview question, Call By Value & Call By Reference in Java. Both beginners and experienced developers get this question in interviews. It’s a technical interviewer’s favorite question. 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. ...

February 18, 2022 Â· 6 min Â· Mahesh More
How to Achieve Greatness in JDBC Performance

How to Achieve Greatness in JDBC Performance

Hey, tea lovers! Today, we will talk about the JDBC, the code which connects Java code to the realm of the databases, and the best practices of JDBC to achieve greatness in the performance of database operations. We will talk about the best practices as we talked about in “ What’s In A Name: Java Naming Conventions” but this time, it is about the JDBC best practices. These are the small tweaks you can do to your code that, not only makes it much faster but also makes your code less horrific. It will be like a list to improve the JDBC or we can say, handle the database like a pro. So let us start the adventure. ...

May 7, 2021 Â· 6 min Â· Imran Shaikh
Java 16 Record to Reduce Boilerplate Code of POJO

Java 16 Record to Reduce Boilerplate Code of POJO

Hey, Tea Lovers! Java 16 is released a few days back, well, a month to be precise. It introduced 17 new features. I discussed the 4 features that the developer will use a lot in my previous post, Simplified Java 16 Key Features. In this post, we will deep dive into Java 16 Record to see how it helps us to reduce the boilerplate code of POJO classes. POJO Boilerplate Code Whenever you need a simple class to hold the data, you write a POJO class, right? But Even though your need is simple, you need to write tonnes of code for just a few things. Such as getters and setters, constructors, toString, and equals and hashcode. No matter how many different POJOs you write, you have to write these 90% similar methods. These things with little to no changes that we have to write again and again for simple purposes are known as Boilerplate code. ...

May 1, 2021 Â· 9 min Â· Imran Shaikh
Java Naming Conventions

Java Naming Conventions: What's In a Name?

Hey, Tea Lovers! Today we will talk about the java naming conventions, according to the best practices. Imagine a world without names. What would happen if nothing in this world had a name? This article would have been a very different story. Oh sorry, we wouldn’t even be able to tell the story. What about if we had weird names? Then what will aliens think about us, that we are a bunch of idiots with weird names? So, everything is in the name, especially when it comes to programming languages. So it is important to focus on naming conventions. ...

April 24, 2021 Â· 7 min Â· Imran Shaikh
Thread Pool in Java Threads Explained

Thread Pool in Java Multi-Threading Explained

Hey, Tea Lovers! Today we will talk about the Thread Pool in Java. And how it saves resources and increases performance. And also, why we should use a thread pool in Java if we are building a multi-threaded java application? Threads in Java Before we talk about the thread pool in Java, let’s revisit threads. Threads are simple yet powerful things. By creating multiple threads, and multithreading applications, you can do tasks simultaneously. Wow, how cool and how efficient, right? But wait, if there is a heaven there is a hell. ...

April 17, 2021 Â· 10 min Â· Imran Shaikh
how to use batch in jdbc

How to Use Batch in JDBC to Insert huge data

Hey. Tea Lovers! Today we will discuss batching and how to use batch in JDBC to insert huge data. Before jumping in, I would suggest you look at my previous posts, " How to Achieve Greatness in JDBC Performance" and " JDBC Connection Pooling Explained with HikariCP". This will help you to further increase the performance along with reliability, maintainability, and flexibility. Why use Batch Insertion Many of you have worked on some projects where you needed to insert a large amount of data into the database. I prefer just using plain JDBC for this kind of job to give the operation a significant boost. But inserting the record one by one as we do is a very slow process. We need to wait until the data of a single record goes to the database, insert happens and then over the network, an acknowledgment occurs, phew! Luckily in JDBC, we have batch operations. With this, we can insert the data in batches rather than one by one, giving a huge advantage. ...

November 30, 2020 Â· 7 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
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
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