Let’s Use Optional to Fix Method Contracts

Optional is a mystery box, a wrapping paper: it may or may not contain the value. When we specify that in a method signature, we assume that the box might be empty.

Java Thread Programming (Part 5)

In this article, we will discuss another situation called “race conditions” and how we can resolve it.

Java Thread Programming (Part 4)

We need to be very careful when using the “volatile” keyword, and we should use it only where it’s required, and definitely not everywhere.

Java Thread Programming (Part 3)

Tip: We can only ask the Java thread to execute a piece of code, but we cannot guarantee the execution order of multiple threads!

Java Thread Programming (Part 2)

Let’s see an example of where we can use Threads. Let’s assume we are building a web server that returns the most used words in a website.

Java Thread Programming (Part 1)

We write code in a file line by line, and then it gets executed. To be able to execute a piece of code requires an execution environment. In Java, a thread is an executing environment. If a program has only one executing environment, then we call this program a single-threaded program.

Compact Strings: Reclaim 25% of Java Heap Memory & Lower Your Cloud Bills

Did you know that you can save up to 25% of your heap memory and your Cloud bills without any effort? Well, it’s true.

Many exciting features have been added to the latest releases of Java recently and I’m going to cover one that is often overlooked in this article.

Coding and collaboration skills a junior developer should have to get hired – Part 2

Today, I met Bruno Souza online and ask him the following question- Recently I’m getting a lot of questions from junior software developers and a common one is that what are the skills( e.g. coding skills, collaboration skills) needed to get hired. As you may have experienced in hiring or working with junior software developers, I believe, … Read more

Coding and collaboration skills a junior developer should have to get hired – Part 1

What coding and teamwork abilities should a junior developer possess to land a job? I’ve been posing this query to numerous well-known developers lately, and the responses are generally similar. While having technical skills (coding skills) is important, they all agree that it is not the only skill you need. You also need to work … Read more

Interview with an experienced Java developer – a legacy code whisperer – Part -3

Bazlur Rahman: There is a book called Outliers where Malcolm Gladwell mentioned that you have to spend 10 thousand hours on a subject to be an expert. That means you have to keep practicing for a long period of time to be an expert developer. The path seems not easy! Scott Wierschem: Actually, the assertion in that book was … Read more