Differences Between HashMap and Hashtable 1. Overview In this short tutorial, we are going to focus on the core differences between the Hashtable and the HashMap. 2. Hashtable and HashMap in Java Hashtable and HashMap are quite similar – both are collections that implement the Map interface. Also, the put(), get(), remove(), and containsKey() methods provide constant-time… Continue Reading hashmap-hashtable-differences

Quicksort Algorithm Implementation in Java 1. Overview In this tutorial, we’ll explore the QuickSort algorithm in detail, focusing on its Java implementation. We’ll also discuss its advantages and disadvantages and then analyze its time complexity. 2. QuickSort Algorithm Quicksort is a sorting algorithm, which is leveraging the divide-and-conquer principle. It has… Continue Reading java-quicksort

Generate equals() and hashCode() with Eclipse 1. Introduction In this article, we explore generating equals() and hashCode() methods using the Eclipse IDE. We’ll illustrate how powerful and convenient the Eclipse’s code auto-generation is, and also emphasize that diligent testing of code is still necessary. 2. Rules equals() in Java is… Continue Reading java-eclipse-equals-and-hashcode

Rate Limiting in Spring Cloud Netflix Zuul 1. Introduction Spring Cloud Netflix Zuul is an open source gateway that wraps Netflix Zuul. It adds some specific features for Spring Boot applications. Unfortunately, rate limiting is not provided out of the box. In this tutorial, we will explore Spring Cloud Zuul RateLimit which… Continue Reading spring-cloud-zuul-rate-limit

Self-Healing Applications with Kubernetes and Spring Boot 1. Introduction In this tutorial, we’re going to talk about Kubernetes‘s probes and demonstrate how we can leverage Actuator‘s HealthIndicator to have an accurate view of our application’s state. For the purpose of this tutorial, we’re going to assume some pre-existing experience with Spring Boot Actuator, Kubernetes, and Docker. 2. Kubernetes… Continue Reading spring-boot-kubernetes-self-healing-apps