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.

92
Articles
0
Likes
62
Views
0
Comments
Recent Articles

Latest from Java Tech Workshop

92 recent articles
Java Tech Workshop
Java Tech Workshop
May 22, 2026 · Backend Development

SpringBoot Delayed Messaging with RabbitMQ’s Delayed Exchange

The article explains why delayed messaging is a common requirement in modern applications, compares the native dead‑letter‑queue TTL method with the RabbitMQ x‑delayed‑message plugin, and provides step‑by‑step SpringBoot integration, configuration, producer/consumer code, testing instructions, and practical cautions.

Dead Letter QueueRabbitMQSpringBoot
0 likes · 13 min read
SpringBoot Delayed Messaging with RabbitMQ’s Delayed Exchange
Java Tech Workshop
Java Tech Workshop
May 22, 2026 · Fundamentals

Proper Use of Java's Scanner Class for Console Input

This article explains the Scanner class in java.util, outlines a four‑step usage pattern, details its API for reading and validation, addresses the common nextInt/nextLine line‑skip issue with two reliable solutions, and provides best‑practice guidelines and example code to avoid resource leaks and input errors.

Best PracticesConsole InputException Handling
0 likes · 10 min read
Proper Use of Java's Scanner Class for Console Input
Java Tech Workshop
Java Tech Workshop
May 21, 2026 · Fundamentals

Understanding Java's Module System: A Deep Dive into module-info.java

This article explains why Java modularization was introduced, outlines the problems with the pre‑Java 9 classpath, introduces the Java Platform Module System (JPMS) and its core file module-info.java, and provides detailed guidance on concepts, syntax, best practices, real‑world examples, IDE setup, and common pitfalls.

Javajava-9jpms
0 likes · 43 min read
Understanding Java's Module System: A Deep Dive into module-info.java
Java Tech Workshop
Java Tech Workshop
May 21, 2026 · Backend Development

The Pros and Cons of Java’s var Local Variable Type Inference

This article examines Java's var local‑variable type inference introduced in Java 10, detailing its benefits such as reduced boilerplate, improved readability, and easier refactoring, while also highlighting drawbacks like potential readability loss, ambiguous types, and strict usage constraints that can lead to bugs if misused.

Best PracticesJavaJava 10
0 likes · 26 min read
The Pros and Cons of Java’s var Local Variable Type Inference
Java Tech Workshop
Java Tech Workshop
May 20, 2026 · Backend Development

How Switch Expressions Evolved from Java 12 to Java 17

This article traces the evolution of Java's switch statement from a cumbersome statement to a modern expression, detailing the six shortcomings of the traditional switch, the introduction of arrow syntax and preview mode in Java 12, the yield keyword in Java 13, the standardization in Java 14, and the powerful pattern‑matching and null‑handling features added in Java 17, while providing concrete code examples and practical guidance.

JavaJava 17code examples
0 likes · 19 min read
How Switch Expressions Evolved from Java 12 to Java 17
Java Tech Workshop
Java Tech Workshop
May 19, 2026 · Fundamentals

Java Type Conversion: Implicit, Explicit, and Numeric Promotion

The article explains Java's type conversion mechanisms, covering implicit (automatic) conversion, explicit (forced) casting, and numeric promotion, with detailed rules, common pitfalls, code examples, and practical tips for safe and correct usage in everyday development.

explicit castingimplicit conversionnumeric promotion
0 likes · 22 min read
Java Type Conversion: Implicit, Explicit, and Numeric Promotion
Java Tech Workshop
Java Tech Workshop
May 18, 2026 · Fundamentals

Understanding Compile-Time and Run-Time Constants in Java

This article explains the fundamental differences between compile-time and run-time constants in Java, covering their definitions, required modifiers, allowed data types, initialization rules, JVM storage behavior, class‑initialization effects, constant‑folding optimizations, practical code examples, common pitfalls, and guidelines for choosing the appropriate constant type in production code.

Best PracticesJavacompile-time
0 likes · 21 min read
Understanding Compile-Time and Run-Time Constants in Java
Java Tech Workshop
Java Tech Workshop
May 14, 2026 · Fundamentals

When and How to Use Java’s assert: Scenarios and Pitfalls

This article explains Java's built‑in assert keyword, its purpose as a lightweight debugging tool, how to enable or disable it with JVM options, proper syntax, practical code examples, suitable use‑cases, prohibited scenarios, and key best‑practice guidelines for developers.

Best PracticesDebuggingassert
0 likes · 18 min read
When and How to Use Java’s assert: Scenarios and Pitfalls
Java Tech Workshop
Java Tech Workshop
May 12, 2026 · Fundamentals

Complete Guide to Java Inner Classes: Member, Local, Static, and Anonymous

This article explains what Java inner classes are, why they are useful, and details the four types—member, static, local, and anonymous—covering their definitions, core characteristics, creation patterns, common pitfalls, and practical scenarios with code examples and comparison tables.

Anonymous ClassInner ClassesLocal Class
0 likes · 22 min read
Complete Guide to Java Inner Classes: Member, Local, Static, and Anonymous