java

Java 12 Features (GC Saga continues)

It was released on March 19, 2019. It's a non LTS release. Here's an overview of the most relevant updates for developers. Switch Expressions It has passed a long time since the last update to switch statement, more specifically the switch on strings in JDK 7. Five versions later we have a new update. switch… Continue reading Java 12 Features (GC Saga continues)

Advertisements
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?