Tagged articles

static block

5 articles · Page 1 of 1
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.

InitializationJavaMemory Model
0 likes · 10 min read
6 Common Misconceptions About Java’s static Keyword
Java Captain
Java Captain
Nov 4, 2017 · Fundamentals

Understanding Java Class Loading, Verification, Preparation, and Initialization

This article explains the Java Virtual Machine's class loading lifecycle—including loading, verification, preparation, resolution, and initialization—illustrated with multiple code examples that show when static blocks and fields are executed and why certain classes may not be initialized.

InitializationJVMclass loading
0 likes · 13 min read
Understanding Java Class Loading, Verification, Preparation, and Initialization