Tagged articles

Inner Classes

4 articles · Page 1 of 1
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
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 27, 2025 · Backend Development

Mastering Java Inner Classes: Organize, Encapsulate, and Simplify Your Code

The article explains how Java inner classes can be used to encapsulate related functionality, access private members of the outer class, implement interfaces for callbacks, and hide implementation details, providing clear code examples such as Car/Engine, Counter/Incrementer, Button listeners, and a Calculator with an Operation inner class.

CallbacksEncapsulationInner Classes
0 likes · 4 min read
Mastering Java Inner Classes: Organize, Encapsulate, and Simplify Your Code
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 9, 2020 · Fundamentals

Understanding Java Syntactic Sugar: Generics, Autoboxing, Enums, and More

This article explains the concept of syntactic sugar in Java, covering generics, autoboxing/unboxing, enums, inner classes, var‑args, enhanced for‑loops, switch on strings, conditional compilation, assertions, try‑with‑resources, and string concatenation, while showing the underlying bytecode transformations.

Inner Classesjavasyntactic sugar
0 likes · 18 min read
Understanding Java Syntactic Sugar: Generics, Autoboxing, Enums, and More