The strictfp Keyword in Java 1. Introduction By default, the floating-point computations in Java are platform-dependent. And so, the floating-point outcome’s precision depends on the hardware in-use. In this tutorial, we’ll learn how to use strictfp in Java to ensure platform-independent floating-point computations. 2. strictfp Usage We can use the… Continue Reading java-strictfp

Converting Java Date to OffsetDateTime 1. Introduction In this tutorial, we learn about the difference between DateĀ and OffsetDateTime. We also learn how to convert from one to the other. 2. Difference between Date and OffsetDateTime OffsetDateTime was introduced in JDK 8 as a modern alternative to java.util.Date. OffsetDateTime is a… Continue Reading java-convert-date-to-offsetdatetime

Practical Application of Test Pyramid in Spring-based Microservice 1. Overview In this tutorial, we’ll understand the popular software-testing model called the test pyramid. We’ll see how it’s relevant in the world of microservices. In the process, we’ll develop a sample application and relevant tests to conform to this model. In… Continue Reading spring-test-pyramid-practical-example