java

Java 14 – The good, the bad and the ugly

Another non LTS version which was released on 17th of march 2020. Let's go through some of the features. https://assets.sewickleyherald.com/2019/11/The-Good-The-Bad-The-Ugly-Slider-cropped.jpg https://assets.sewickleyherald.com/2019/11/The-Good-The-Bad-The-Ugly-Slider-cropped.jpg The Good You see, in this world there's two kinds of people, my friend: Those with loaded guns and those who dig. You dig. Records Well this was a long awaited feature. It's still… Continue reading Java 14 – The good, the bad and the ugly

java

Profiling with Spring

Every application should have functional and non-functional tests. Non-functional include load and performance. So what happens when we do not meet the performance requirements? Obviously we try to figure out what is going on. This is called profiling. In this post I will write about how to profile an application with spring. Profiling an application… Continue reading Profiling with Spring

java

How many exceptions?

We all know what exceptions are. We have checked and unchecked exceptions in java. Checked exceptions are for recovering. Like reading a file from disk. public class ReadFile { private AtomicInteger retryCount = new AtomicInteger(0); private static final int maxRetries = 3; private static Logger log = getLogger(ReadFile.class.getName()); private String readFromFile(String fileLocation) { StringBuilder resultStringBuilder… Continue reading How many exceptions?