Creating Java static final Equivalents in Kotlin 1. Overview In this quick tutorial, we’ll discuss static final variables in Java and their equivalent in Kotlin. In Java, declaring static final variables helps us create constants. And in Kotlin, we have several ways to achieve the same goal. 2. Inside an object Firstly,… Continue Reading kotlin-java-static-final

Get a Value by Key in a JSONArray 1. Overview JSON is a light-weight and language independent data-interchange format used for most client-server communications. JSONObject and JSONArray are the two common classes usually available in most of the JSON processing libraries. A JSONObject stores unordered key-value pairs, much like a… Continue Reading java-jsonarray-get-value-by-key

A Spring Custom Annotation for a Better DAO Spring Persistence Spring Annotations 1. Overview In this tutorial, we’ll implement a custom Spring annotation with a bean post-processor. So how does this help? Simply put – we can reuse the same bean instead of having to create multiple, similar beans of… Continue Reading spring-annotation-bean-pre-processor