OCP Certification – Advanced Java Class Design Java [[OCP Java]] === 1. Overview In this tutorial, we’ll discuss the advanced Java class design objective of the OCP certification. [[Java certification]] === 2. OCP Java Certification The OCP certification is an upgrade on the OCA certification but follows the same format… Continue Reading java-ocp-advanced-class-design

Introduction to Conflict-Free Replicated Data Types Cloud Data 1. Overview In this article, we’ll look at conflict-free replicated data types (CRDT) and how to work with them in Java. For our examples, we’ll use implementations from the wurmloch-crdt library. When we have a cluster of N replica nodes in a… Continue Reading java-conflict-free-replicated-data-types

The K-Means Clustering Algorithm in Java 1. Overview Clustering is an umbrella term for a class of unsupervised algorithms to discover groups of things, people, or ideas that are closely related to each other. In this apparently simple one-liner definition, we saw a few buzzwords. What exactly is clustering? What is an… Continue Reading java-k-means-clustering-algorithm

Testing REST with multiple MIME types 1. Overview This article will focus on testing a REST Service with multiple Media Types/representations. We will write integration tests capable of switching between the multiple types of Representations supported by the API. The goal is to be able to run the exact same… Continue Reading testing-rest-api-with-multiple-media-types

Simplify the DAO with Spring and Java Generics 1. Overview This article will focus on simplifying the DAO layer by using a single, generified Data Access Object for all entities in the system, which will result in elegant data access, with no unnecessary clutter or verbosity. We’ll build on the… Continue Reading simplifying-the-data-access-layer-with-spring-and-java-generics

XStream User Guide: Converting XML to Objects 1. Overview In a previous article, we learned how to use XStream to serialize Java objects to XML. In this tutorial, we will learn how to do the reverse: deserialize XML to Java objects. These tasks can be accomplished using annotations or programmatically.… Continue Reading xstream-deserialize-xml-to-object