9 Reasons for keeping software dependencies up to date

In this post, we will explore nine reasons why keeping software dependencies up to date is a very important task, and why it should be part of every software developer’s work routine.   Keeping software secure   Upgrading your software dependencies does not only provide you with the latest and greatest features and APIs, but …


The Java Comparable interface – Automatically sort collections

Summary: In this post, we will explore how to use the Java comparable interface to automatically sort collections of any classes. We will use the Java Collections from the util library as an example.   Introduction: Java interfaces are one of the most powerful features of the object oriented programming language. When a class implements …


How to squeeze more performance out of ArrayLists

In this post we will discuss how to improve the performance of Java programs that utilize ArrayLists by setting the list’s initial capacity.   ArrayLists and lists in general are great data structures for storing data. They are convenient for when we don’t know how large our data set. However, this comes with a performance …


Spring Boot Freemarker Configuration Example

Introduction Freemarker is a powerful Java template engine. It can be used to generate basically anything, from HTML pages, configuration files, e-mails, or anything else. All you need to do is define your template, use Java to prepare the data, and use the Freemarker engine to process your data with the given template to produce …


Java NullPointerException – examples, causes and fixes

Probably one of the most common and annoying exceptions to be encountered by any Java developer is the dreaded “NullPointerException”. A null pointer exception is thrown when an “illegal” referencing of a null object is performed. A “null” object is an object which is not initialized. Let us explore some examples of how a null …


How to install Maven 3.5.x on Windows

In the following article, we will find out how to install Apache Maven on Windows. We will be using Windows 8.1 and Maven 3.5.4 in this guide, but the instructions should also be valid for other software versions. Before we start, make sure that you have JDK installed properly on your machine. Next, we will …