Java 10 LocalVariable Type-Inference 1. Overview One of the most visible enhancements in JDK 10 is type inference of local variables with initializers. This tutorial provides the details of this feature with examples. 2. Introduction Until Java 9, we had to mention the type of the local variable explicitly and… Continue Reading java-10-local-variable-type-inference

Intro to Dropwizard Metrics 1. Introduction Metrics is a Java library which provides measuring instruments for Java applications. It has several modules, and in this article, we will elaborate metrics-core module, metrics-healthchecks module, metrics-servlets module, and metrics-servlet module, and sketch out the rest, for your reference. 2. Module metrics-core ====… Continue Reading dropwizard-metrics

Properties with Spring and Spring Boot 1. Overview This tutorial will show how to set up and use Properties in Spring – via Java configuration and @PropertySource or via XML and <property-placeholder>, as well how properties work in Spring Boot. Further reading: Spring Expression Language Guide This article explores Spring… Continue Reading properties-with-spring

Custom Validation MessageSource in Spring Boot 1. Overview MessageSource is a powerful feature available in Spring applications. This helps application developers handle various complex scenarios with writing much extra code, such as environment-specific configuration, internationalization or configurable values. One more scenario could be modifying the default validation messages to more… Continue Reading spring-custom-validation-message-source

StringBuilder and StringBuffer in Java 1. Overview In this short article, we’re going to look at similarities and differences between StringBuilder and StringBuffer in Java. Simply put, StringBuilder was introduced in Java 1.5 as a replacement for StringBuffer. 2. Similarities Both StringBuilder and StringBuffer create objects that hold a mutable… Continue Reading java-string-builder-string-buffer