We write codes that create Java objects from Java classes. These can have properties and behaviors. Properties are data with names; while, behaviors are the actions an object can perform on its properties. Consider the following Java class without properties
Chapter 8: Java Primitives in The OOP World
Java primitives are predefined basic data types that exist in the Java programming language. We do not need to create them as we would with our custom Java classes. What Are Basic Data Types in Java? Java primitive types hold
Chapter 2: Why You Should Learn Programming With Java
In the early 90s, Sun Microsystems developed and released the Java programming language. It is a general-purpose and high-level language that can run on various operating systems, like Windows, Mac OS, and UNIX platforms. This post gives an overview of
Spring Boot Consul Service Discovery And Client Example
This post shows how to use Spring Boot Service Discovery with Consul. We’ll have two Spring Boot applications. One application registers itself with Consul. It then becomes discoverable to another application. Meanwhile, the other application does not register itself with
Monitor Directory for File Creation Using Only Java
In batch processing, some use-cases require event triggers to start operations on data sources, e.g., files or remote web endpoints. These could be user events like clicking a button. On the other hand, they could be system events like file
Java – Deploy Java CLI Application to Docker Image
With Docker, we can create portable Java CLI applications for various environments by pre-building container images. These images could make deployment a lot easier and less messy in particularly in Production environments. This post briefly demonstrates how to create a
Proper Implementation Of Singleton Pattern in Java
This post shows the proper implementation of the Singleton Pattern in Java. Many of us would apply it in the most convenient way but not the proper one. In most cases, our codes would work. But when we deal with
Micronaut Consul Distributed Configuration Example In Java
When we start to build something based on Microservice design, we’d inevitably need a distributed configuration for our applications. Having a distributed configuration makes scaling them out a lot easier. This post shows how to configure Micronaut to pick up
Micronaut Consul Service Discovery Example In Java
Previously, we had an application that reads a property from a distributed configuration. This post shows how to use Micronaut with the Consul’s Service Discovery. We will use two applications where one of them accesses the other’s URI. Also, we
Web Service Using Apache XML-RPC: Server And Client-Side
This articles demonstrates how to use Apache XML-RPC in Java command-line applications. We will create programs both for XML-RPC server and client.