Java Tech Workshop
Author

Java Tech Workshop

Focused on Java backend technologies, sharing fundamentals, multithreading, JVM, the Spring ecosystem, microservices, distributed systems, high concurrency, source‑code analysis, and practical experience. Continuously delivers high‑quality original content, interview guides, and learning roadmaps to help Java developers progress from beginner to advanced, enhancing technical skills and core competitiveness.

178
Articles
0
Likes
1.4k
Views
0
Comments
Recent Articles

Latest from Java Tech Workshop

100 recent articles max
Java Tech Workshop
Java Tech Workshop
Oct 3, 2026 · Backend Development

LRU Cache in 3 Lines: How LinkedHashMap Does the Heavy Lifting

This article demonstrates how to build a bounded LRU cache in three lines by extending LinkedHashMap with access-order enabled and overriding removeEldestEntry, detailing the internal doubly-linked list mechanics, thread-safety limitations, memory overhead, and when to migrate to Caffeine for advanced features like TTL and high concurrency.

CaffeineJavaLRU cache
0 likes · 22 min read
LRU Cache in 3 Lines: How LinkedHashMap Does the Heavy Lifting
Java Tech Workshop
Java Tech Workshop
Oct 2, 2026 · Fundamentals

Frequent Minor GC? The Real Culprits Are Allocation Rate and Premature Promotion

This article explains why frequent Minor GC in Java applications stems from high object allocation rates or premature promotion to old generation, not heap size, and details generational collection mechanics, promotion thresholds, dynamic age judgment, and troubleshooting using jstat, GC logs, and AsyncProfiler to pinpoint allocation hotspots.

Allocation RateAsyncProfilerGC Logs
0 likes · 18 min read
Frequent Minor GC? The Real Culprits Are Allocation Rate and Premature Promotion
Java Tech Workshop
Java Tech Workshop
Sep 30, 2026 · Backend Development

Java Records vs Lombok @Data: One-Line Replacement Guide

This article compares Java 16 records with Lombok's @Data annotation, detailing generated code differences, a feature comparison table, a Spring Boot migration example, scenarios where records cannot replace @Data, and key caveats including immutability constraints, Jackson deserialization requirements, and mutable collection pitfalls.

0 likes · 18 min read
Java Records vs Lombok @Data: One-Line Replacement Guide
Java Tech Workshop
Java Tech Workshop
Sep 29, 2026 · Backend Development

Java Method References: Four Patterns, Readability Tips, and Compiler Resolution Explained

This article explains the four types of Java method references (static, bound instance, arbitrary instance, constructor), their equivalent lambdas, compiler overload resolution, readability trade-offs, and practical examples showing when method references improve clarity versus when lambdas remain preferable.

Best PracticesCode ReadabilityCompiler Overload Resolution
0 likes · 21 min read
Java Method References: Four Patterns, Readability Tips, and Compiler Resolution Explained
Java Tech Workshop
Java Tech Workshop
Sep 28, 2026 · Fundamentals

Java Interface Default & Static Methods: Evolution Tool or Maintenance Trap?

This article analyzes Java 8+ interface default and static methods, explaining their original purpose for backward-compatible interface evolution, valid use cases like optional capabilities and mixin-style derived methods, and common pitfalls including hidden assumptions, silent failures, fixed workflows that prevent customization, and binary vs semantic compatibility issues. It includes a real-world refactoring example for payment callback handlers.

Interface Default MethodsInterface EvolutionInterface Static Methods
0 likes · 24 min read
Java Interface Default & Static Methods: Evolution Tool or Maintenance Trap?
Java Tech Workshop
Java Tech Workshop
Sep 23, 2026 · Backend Development

ValidX in DDD: Layered Validation for Domain Models

This article demonstrates how ValidX, a JSR-380-compliant validation library with 100+ Chinese business validators, integrates into DDD layered architecture, showing annotation-based DTO validation, chain-style API for value objects, aggregate roots, and domain services, with code examples for each layer and best practices for avoiding common pitfalls.

Aggregate RootDDDDomain Service
0 likes · 20 min read
ValidX in DDD: Layered Validation for Domain Models