String Initialization in Java 1. Introduction Java String is one of the most important classes and we’ve already covered a lot of its aspects in our String-related series of tutorials. In this tutorial, we’ll focus on String initialization in Java. 2. Creation First of all, we should remember how Strings are… Continue Reading java-string-initialization

What is the serialVersionUID? 1. Overview Simply put, the serialVersionUID is a unique identifier for Serializable classes. This is used during the deserialization of an object, to ensure that a loaded class is compatible with the serialized object. If no matching class is found, an InvalidClassException is thrown. 2. Example… Continue Reading java-serial-version-uid

Integration Testing with a Local DynamoDB Instance Persistence 1. Overview If we develop an application which uses Amazon’s DynamoDB, it can be tricky to develop integration tests without having a local instance. In this tutorial, we’ll explore multiple ways of configuring, starting and stopping a local DynamoDB for our integration… Continue Reading dynamodb-local-integration-tests

How to Test the @Scheduled Annotation 1. Introduction One of the available annotations in the Spring Framework is @Scheduled. We can use this annotation to execute tasks in a scheduled way. In this tutorial, we’ll explore how to test the @Scheduled annotation. 2. Dependencies First, let’s start creating a Spring Boot Maven-based application… Continue Reading spring-testing-scheduled-annotation