Hi there 👋

Welcome to my blog

Differences Between MBR and GPT Disk Partition Formats

There are two common disk partition table formats: MBR (Master Boot Record) and GPT (GUID Partition Table). They primarily differ in capacity support, number of partitions, boot methods, and reliability. I. Core Differences Between MBR and GPT Comparison Item MBR GPT Maximum Disk Capacity 2TB Theoretically 9.4ZB (Extremely Large) Maximum Primary Partition Count 4 Primary Partitions (or 3 Primary + 1 Extended) 128 Partitions by Default Boot Method Legacy BIOS UEFI Partition Table Location Beginning of the disk (single copy) Beginning + End of the disk (with backup) Data Security Lower Higher (CRC Check + Backup) Compatibility Good compatibility with older systems Better support for newer systems II. MBR (Master Boot Record) Characteristics: ...

March 16, 2026 · 2 min · 410 words · Zajac

Deep Dive into Java Class Initialization Mechanisms: From `<clinit>()`/`<init>()` Bytecode to Static Inner Class Lazy Loading in Practice

In Java development, the class loading mechanism is core to understanding JVM runtime principles. The distinction between class initialization and instance initialization, along with the lazy loading characteristic of static inner classes, are crucial for writing high-performance, thread-safe code (like the Singleton pattern). Many developers only reach the “how to use” level without understanding the underlying <clinit>() and <init>() execution logic, and often misunderstand the loading rules for static inner classes. This article dissects the essence of class initialization from a bytecode perspective, validates loading timings with practical examples, and ultimately lands on the optimal implementation of the static inner class Singleton pattern, helping you thoroughly master this core knowledge point. ...

March 14, 2026 · 9 min · 1790 words · Zajac