Tagged articles

Object Lifecycle

3 articles · Page 1 of 1
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 23, 2024 · Fundamentals

Understanding JVM Memory Structure and Object Lifecycle

This article explains the JVM memory architecture—including heap, stack, native stack, method area, and program counter—detailing heap generations, object allocation strategies, object layout, reference types, and the complete lifecycle of Java objects from creation to garbage collection.

Garbage CollectionJVMMetaspace
0 likes · 11 min read
Understanding JVM Memory Structure and Object Lifecycle
Test Development Learning Exchange
Test Development Learning Exchange
Aug 7, 2024 · Fundamentals

Master Python’s __new__, __init__, and __del__ Magic Methods with Real Code Examples

This article explains how Python’s __new__, __init__, and __del__ magic methods work, shows when to use each, and provides step‑by‑step code examples—including singleton creation, inheritance initialization, resource cleanup, and metaclass usage—to help developers master object lifecycle control.

Object LifecyclePythonmagic methods
0 likes · 6 min read
Master Python’s __new__, __init__, and __del__ Magic Methods with Real Code Examples
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 7, 2021 · Fundamentals

The Life Cycle of Java Objects: From Allocation to Old Generation

This article uses a real‑world recommendation system case to explain how Java objects are created in the young generation, survive multiple young GCs, and are promoted to the old generation under various conditions such as repeated GC cycles, dynamic age thresholds, and space‑guarantee mechanisms.

Garbage CollectionJVMMemory Management
0 likes · 7 min read
The Life Cycle of Java Objects: From Allocation to Old Generation