Tagged articles
5 articles
Page 1 of 1
IT Services Circle
IT Services Circle
Feb 4, 2022 · Fundamentals

Understanding the Execution Order of Static Blocks, Instance Blocks, Constructors, and Regular Code Blocks in Java

This article explains the definition, execution timing, and practical uses of Java static code blocks, instance (constructor) code blocks, constructors, and regular code blocks, and demonstrates their exact execution order—including parent‑child class initialization—through clear code examples and output analysis.

Code BlocksConstructorsExecution Order
0 likes · 8 min read
Understanding the Execution Order of Static Blocks, Instance Blocks, Constructors, and Regular Code Blocks in Java
Programmer DD
Programmer DD
Aug 21, 2021 · Backend Development

Mastering Java Constructors and Design Patterns: From Implicit to Singleton

This article provides a comprehensive guide to advanced Java concepts, covering implicit, no‑arg, and argument constructors, initialization blocks, static initialization, default value guarantees, visibility rules, garbage collection, finalizers, and common construction patterns such as singleton, helper, factory, and dependency injection, helping developers deepen their object‑oriented mastery.

ConstructorsFactoryadvanced-java
0 likes · 16 min read
Mastering Java Constructors and Design Patterns: From Implicit to Singleton
Java Captain
Java Captain
Jan 29, 2018 · Fundamentals

Understanding the Lifecycle of Java Classes in the JVM

This article explains the complete lifecycle of a Java class within the JVM, covering memory areas such as the method, heap, and stack regions, and detailing the five stages—loading, linking, initialization, usage, and unloading—along with code examples illustrating active and passive references.

InitializationJVMMemory Management
0 likes · 16 min read
Understanding the Lifecycle of Java Classes in the JVM