All writing

Java

Articles about java.

5 articles
  1. 16 min read

    Understanding 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.

  2. 9 min read

    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.

  3. 15 min read

    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.

  4. 7 min read

    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.

  5. 9 min read

    Functional Programming in Java, Explained

    Java functional programming with lambda expressions and functional interfaces, including built-in interfaces and a small custom Stream implementation.