Java
Articles about java.
5 articlesUnderstanding How Java's Garbage Collector Works
How Java manages memory and reclaims objects, with an overview of Serial, Parallel, G1, and ZGC collectors and their performance tradeoffs.
How to Implement JSON Web Token (JWT) in Java Spring Boot
Implement signed and encrypted JSON Web Tokens in Java Spring Boot with jose4j, covering JWS creation and validation, JWE, and key handling.
Getting Started With Elasticsearch in Java Spring Boot
Connect Spring Boot 2 to Elasticsearch using Spring Data repositories, ElasticsearchRestTemplate, and the REST high-level client, with CRUD examples.
Avoiding the Null Pointer Exception With Optional in Java
How to use Java Optional to handle missing values, with examples of map, flatMap, filter, fallback methods, and common mistakes to avoid.
Functional Programming in Java, Explained
Java functional programming with lambda expressions and functional interfaces, including built-in interfaces and a small custom Stream implementation.