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.

160
Articles
0
Likes
885
Views
0
Comments
Recent Articles

Latest from Java Tech Workshop

100 recent articles max
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.

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

JavaJava 10best practices
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.

Code ExamplesJavaJava 17
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.

Implicit Conversionexplicit castingnumeric 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.

JVMJavabest practices
0 likes · 21 min read
Understanding Compile-Time and Run-Time Constants in Java
Java Tech Workshop
Java Tech Workshop
May 15, 2026 · Fundamentals

Why Java's strictfp Keyword Guarantees Consistent Floating‑Point Results Across Platforms

Floating‑point calculations can yield different results on Windows, macOS and Linux due to JVM optimisations; the strictfp keyword forces Java to follow the IEEE‑754 standard exactly, disabling hardware‑level precision tricks so that the same code produces identical results on any OS, CPU or JVM implementation.

Cross-platformIEEE 754Java
0 likes · 18 min read
Why Java's strictfp Keyword Guarantees Consistent Floating‑Point Results Across Platforms
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.

Code ExamplesDebuggingassert
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
Java Tech Workshop
Java Tech Workshop
May 8, 2026 · Fundamentals

6 Common Misconceptions About Java’s static Keyword

This article debunks six frequent misunderstandings of Java’s static keyword, covering its class-level nature, the impossibility of overriding static methods, the prohibition of this/super in static contexts, the one‑time execution of static blocks, the lack of inherent thread safety for static variables, and why static fields should not be initialized in constructors or instance blocks.

InitializationJavaThread Safety
0 likes · 10 min read
6 Common Misconceptions About Java’s static Keyword