Java 10 features

It was released on March 20, 2018. It is a short-term release without LTS support. Let's get into details. Local-Variable Type Inference Ahh...good'ol javascript. Well this is more like a sugar syntax. Instead of declaring inside a method a local variable with private void method(){ List<String> strings = new ArrayList<>(); // do other stuff }… Continue reading Java 10 features


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. Photo by João Silas on Unsplash… Continue reading Profiling with Spring


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?