Broadcasting and Multicasting in Java 1. Introduction In this article, we describe how one-to-all (Broadcast) and one-to-many (Multicast) communications can be handled in Java. The broadcast and multicast concepts outlined in this article are based on the UDP protocol. We start with a quick recap of datagrams and broadcasting and… Continue Reading java-broadcast-multicast

Convert Latitude and Longitude to a 2D Point in Java   1. Overview When implementing applications that use maps, we will typically run into the problem of coordinate conversion. Most of the time, we need to convert latitude and longitude to a 2D point to display. Fortunately, to solve this problem,… Continue Reading java-convert-latitude-longitude

Java System.getProperty vs System.getenv DevOps Java 1. Introduction The package java.lang is automatically imported when in a Java application. This package contains many commonly used classes from NullPointerException to Object, Math, and String. The java.lang.System class is a final class, meaning that we cannot subclass it, therefore all methods are… Continue Reading java-system-get-property-vs-system-getenv

LongAdder and LongAccumulator in Java 1. Overview In this article, we’ll be looking at two constructs from the java.util.concurrent package: LongAdder and LongAccumulator. Both are created to be very efficient in the multi-threaded environment and both leverage very clever tactics to be lock-free and still remain thread-safe. 2. LongAdder Let’s… Continue Reading java-longadder-and-longaccumulator

Monitoring Java Applications with Flight Recorder 1. Overview In this tutorial, we’ll examine Java Flight Recorder, its concepts, its basic commands, and how to use it. 2. Java Monitoring Utilities Java is not just a programming language but a very rich ecosystem with a lot of tools. The JDK contains… Continue Reading java-flight-recorder-monitoring