Tagged articles
81 articles
Page 1 of 1
macrozheng
macrozheng
Jan 30, 2026 · Backend Development

Why MyBatis Triggers OutOfMemoryError and How to Fix It

The article examines a production OutOfMemoryError caused by MyBatis SQL construction, explains heap and metaspace exhaustion, analyzes MyBatis source code, reproduces the issue with JVM settings, and offers practical recommendations to prevent similar memory failures.

BackendHeapMemoryLeak
0 likes · 7 min read
Why MyBatis Triggers OutOfMemoryError and How to Fix It
Code Wrench
Code Wrench
Jan 23, 2026 · Backend Development

Mastering Task Prioritization in Go: Build a Robust Priority Queue

This article explains why simple FIFO task handling in Go services can drown critical work, introduces priority queues as the algorithmic solution, and provides a complete, thread‑safe implementation with practical examples and common pitfalls.

BackendHeapalgorithm
0 likes · 7 min read
Mastering Task Prioritization in Go: Build a Robust Priority Queue
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Oct 20, 2025 · Fundamentals

Why Does a C++ Program Crash on free() Even When It Looks Correct?

Even when a C++ program appears to run correctly, writing beyond allocated memory can corrupt heap metadata, causing a delayed crash at free(); this article explains the underlying malloc/free mechanisms, demonstrates the issue with code examples, and offers debugging tools and defensive programming practices to prevent such errors.

FreeHeapc++
0 likes · 9 min read
Why Does a C++ Program Crash on free() Even When It Looks Correct?
Code Wrench
Code Wrench
Sep 6, 2025 · Backend Development

Mastering High-Performance Timers: Heap vs Timing Wheel in Go and C#

This article explains the core principles of timers, compares heap‑based and timing‑wheel algorithms, analyzes Go's built‑in timer implementation versus C#'s approach, and provides practical optimization techniques for high‑concurrency, high‑precision scenarios.

GoHeapc++
0 likes · 10 min read
Mastering High-Performance Timers: Heap vs Timing Wheel in Go and C#
Deepin Linux
Deepin Linux
Aug 24, 2025 · Fundamentals

Why Is Stack Memory Faster Than Heap? A Deep Dive into Stack vs. Heap Allocation

This article explains the fundamental differences between stack and heap memory allocation, covering their allocation mechanisms, performance characteristics, common pitfalls such as stack overflow and memory leaks, practical code examples in C/C++, and typical interview questions to help developers choose the right memory model for their applications.

HeapMemory ManagementStack
0 likes · 65 min read
Why Is Stack Memory Faster Than Heap? A Deep Dive into Stack vs. Heap Allocation
Deepin Linux
Deepin Linux
Aug 23, 2025 · Fundamentals

How Does delete Know Memory Size? A Deep Dive into C++ Memory Management

This article explains C++ memory management fundamentals, detailing how delete and free release memory without explicit size knowledge, the role of stack, heap, data and code segments, differences between new/delete and malloc/free, array handling, common pitfalls, and interview questions with code examples.

DELETEFreeHeap
0 likes · 34 min read
How Does delete Know Memory Size? A Deep Dive into C++ Memory Management
Liangxu Linux
Liangxu Linux
Jun 16, 2025 · Fundamentals

Where Does a C++ vector Live? Stack, Heap, or Global Memory Explained

This article clarifies whether a C++ vector object resides on the stack, heap, or in static storage, explains that its elements are almost always allocated on the heap, covers special cases like small‑vector optimization, and provides interview‑ready answers with sample code and memory‑location experiments.

C++HeapMemory Management
0 likes · 12 min read
Where Does a C++ vector Live? Stack, Heap, or Global Memory Explained
Deepin Linux
Deepin Linux
May 28, 2025 · Fundamentals

Understanding Heap Memory Management in C: Detailed Guide to malloc and free

This article provides a comprehensive overview of heap memory management in C, explaining the concepts of heap versus stack, the usage and internal mechanisms of malloc and free, common pitfalls such as memory leaks and dangling pointers, and compares these functions with new/delete, calloc, and realloc.

FreeHeapc++
0 likes · 29 min read
Understanding Heap Memory Management in C: Detailed Guide to malloc and free
Cognitive Technology Team
Cognitive Technology Team
Mar 25, 2025 · Fundamentals

Understanding the Java Memory Model and Its Interaction with Hardware Memory Architecture

This article explains how the Java Memory Model defines the interaction between threads, thread stacks, and the heap, illustrates these concepts with diagrams and example code, and discusses how modern hardware memory architecture, caches, and CPU registers affect visibility and race conditions in concurrent Java programs.

HeapMemory ModelThread
0 likes · 11 min read
Understanding the Java Memory Model and Its Interaction with Hardware Memory Architecture
Deepin Linux
Deepin Linux
Feb 27, 2025 · Fundamentals

Understanding malloc and free: Memory Allocation Mechanisms in C

This article explains how the C functions malloc and free allocate and release memory, covering stack vs heap, the brk and mmap system calls, fragmentation, header metadata, and why both allocation strategies are needed for efficient memory management.

C ProgrammingFreeHeap
0 likes · 17 min read
Understanding malloc and free: Memory Allocation Mechanisms in C
Liangxu Linux
Liangxu Linux
Jan 20, 2025 · Fundamentals

Stack vs Heap Memory: Deep Dive into Allocation, Usage, and Performance

This article explains the fundamental differences between stack and heap memory, covering their structures, allocation strategies, performance characteristics, language-specific examples in Java, C++, and Python, and provides guidance on when to use each type for efficient programming.

C++HeapMemory Management
0 likes · 16 min read
Stack vs Heap Memory: Deep Dive into Allocation, Usage, and Performance
Linux Kernel Journey
Linux Kernel Journey
Jan 9, 2025 · Fundamentals

How Does a Linux Process Use Memory? A Deep Dive

This article explains the Linux kernel’s memory management for a process, covering virtual address spaces, page‑fault handling, VMA allocation, stack and heap initialization, sbrk/brk usage, thread‑stack creation, and the glibc ptmalloc heap allocator with concrete code examples and diagrams.

HeapLinuxPage Fault
0 likes · 15 min read
How Does a Linux Process Use Memory? A Deep Dive
Sanyou's Java Diary
Sanyou's Java Diary
Oct 28, 2024 · Fundamentals

Master JVM Memory Troubleshooting: A Step‑by‑Step Guide

This comprehensive guide walks you through systematic JVM memory issue diagnosis, covering initial data collection, analysis of heap, metaspace, direct memory, stack problems, and practical command‑line tools, while offering actionable tips and real‑world examples for effective troubleshooting.

DirectMemoryHeapJVM
0 likes · 56 min read
Master JVM Memory Troubleshooting: A Step‑by‑Step Guide
Liangxu Linux
Liangxu Linux
Aug 12, 2024 · Fundamentals

Understanding C Memory Leaks: Causes, Detection, and Prevention

This article explains why memory leaks occur only with heap allocations in C, describes how malloc and related functions allocate memory, outlines two common ways to obtain heap memory, identifies the three essential elements of a leak, debunks common freeing misconceptions, and provides practical inspection steps to prevent leaks.

Heapc++debugging
0 likes · 6 min read
Understanding C Memory Leaks: Causes, Detection, and Prevention
Liangxu Linux
Liangxu Linux
Jul 13, 2024 · Fundamentals

How Does malloc Actually Allocate Memory? A Visual Walkthrough

This article explains what happens inside a computer when you request memory with malloc, covering the C standard library, compilation, memory layout, heap allocation, fragmentation, and how the operating system expands the heap using system calls.

C ProgrammingHeapOperating System
0 likes · 6 min read
How Does malloc Actually Allocate Memory? A Visual Walkthrough
Java Tech Enthusiast
Java Tech Enthusiast
Jun 29, 2024 · Fundamentals

Understanding Memory Allocation in C

The article explains C’s memory allocation, detailing how functions like malloc obtain heap space, the role of system calls such as brk, the distinction between stack and heap, address layout, fragmentation challenges, and practical implications for efficient dynamic memory management.

C ProgrammingHeapMemory Fragmentation
0 likes · 5 min read
Understanding Memory Allocation in C
Liangxu Linux
Liangxu Linux
Apr 21, 2024 · Fundamentals

Understanding C Memory Layout on STM32: Stack, Heap, and Data Segments Explained

This article explains C language memory partitioning—including stack, heap, global/static, constant, and code sections—illustrates their characteristics and growth directions, then applies the concepts to STM32F103 by showing memory map details and providing a complete Keil‑based C program that prints the addresses of variables in each region.

Data SegmentHeapSTM32
0 likes · 10 min read
Understanding C Memory Layout on STM32: Stack, Heap, and Data Segments Explained
Liangxu Linux
Liangxu Linux
Apr 5, 2024 · Fundamentals

Understanding C Memory Layout on STM32: Stack, Heap, and Global Sections

This article explains the C language memory segmentation—including stack, heap, global/static, constant, and code areas—illustrates their behavior on STM32F103 with Keil V5, and provides detailed example code that prints the addresses of variables in each region to demonstrate allocation and lifetime.

HeapSTM32Stack
0 likes · 9 min read
Understanding C Memory Layout on STM32: Stack, Heap, and Global Sections
Java Backend Technology
Java Backend Technology
Mar 19, 2024 · Backend Development

6 Common Java OOM Scenarios and How to Prevent Them

This article explains six typical OutOfMemoryError situations in Java—heap, native thread, stack overflow, direct buffer, GC overhead, and Metaspace—provides code examples that trigger each issue, shows the resulting exception messages, and offers practical tips such as using thread pools, limiting recursion depth, adjusting GC settings, and configuring Metaspace to avoid these memory problems.

HeapJVMMetaspace
0 likes · 9 min read
6 Common Java OOM Scenarios and How to Prevent Them
Sanyou's Java Diary
Sanyou's Java Diary
Mar 4, 2024 · Fundamentals

Master JVM Memory Troubleshooting: A Complete Step‑by‑Step Guide

This comprehensive guide presents a systematic, step‑by‑step process for diagnosing JVM memory problems—including heap, Metaspace, DirectMemory, JNI memory, and stack issues—using Alibaba Cloud ARMS, ATP, standard JDK tools, and best‑practice commands to quickly locate root causes and apply effective solutions.

HeapJVMgc
0 likes · 56 min read
Master JVM Memory Troubleshooting: A Complete Step‑by‑Step Guide
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 29, 2024 · Backend Development

Design and Implementation of a High‑Performance In‑Memory Cache in Go (MemoryCache)

This article analyzes the shortcomings of existing Go caching libraries, introduces the MemoryCache project, explains its hash‑based bucket design, 4‑ary heap LRU implementation, unified timer strategy, and provides practical usage examples with code snippets for SetWithCallback and GetOrCreateWithCallback.

HeapMemory Cachecaching
0 likes · 13 min read
Design and Implementation of a High‑Performance In‑Memory Cache in Go (MemoryCache)
37 Interactive Technology Team
37 Interactive Technology Team
Nov 20, 2023 · Fundamentals

What Are Stack and Heap?

The article explains Go’s stack and heap memory, showing that stack allocations are fast, LIFO‑ordered and compile‑time sized while heap allocations grow upward, require garbage collection, and occur when variables escape a function, urging developers to prefer stack use for better performance.

Garbage CollectionGoHeap
0 likes · 6 min read
What Are Stack and Heap?
Liangxu Linux
Liangxu Linux
Sep 2, 2023 · Fundamentals

Mastering C Memory Layout: Stacks, Heaps, Segments, and const Usage

This article explains the five memory partitions in C, the storage regions created during compilation and linking, the different program segments (code, RO data, RW data, BSS, heap, stack), the proper use of const and pointers, 8051-specific memory qualifiers, and a detailed comparison of stack and heap allocation, including practical code examples.

C ProgrammingData SegmentsHeap
0 likes · 25 min read
Mastering C Memory Layout: Stacks, Heaps, Segments, and const Usage
Open Source Linux
Open Source Linux
Aug 16, 2023 · Fundamentals

Mastering C Memory Layout: Stack, Heap, and Data Segments Explained

This article provides a comprehensive guide to C memory organization, covering the five primary memory regions, the layout of compiled C programs, detailed segment types such as code, read‑only, read‑write, BSS, heap and stack, as well as const usage, pointer rules, and embedded‑system storage qualifiers.

C ProgrammingHeapStack
0 likes · 25 min read
Mastering C Memory Layout: Stack, Heap, and Data Segments Explained
Sanyou's Java Diary
Sanyou's Java Diary
Dec 1, 2022 · Fundamentals

Mastering JVM Memory: From Heap to Metaspace and Beyond

This article provides a comprehensive overview of the Java Virtual Machine memory architecture, covering heap layout, object allocation, Metaspace, stack frames, native method stacks, program counters, direct memory, and code cache, complete with configuration tips and practical code examples.

Garbage CollectionHeapJVM
0 likes · 18 min read
Mastering JVM Memory: From Heap to Metaspace and Beyond
Programmer DD
Programmer DD
Jul 21, 2022 · Fundamentals

Understanding JVM Memory Layout: Heap, Metaspace, and Stack Explained

This article explains the JVM memory layout, covering the heap area, its configurable size and generational structure, the Metaspace replacement for PermGen, the thread‑private virtual machine stack and native method stack, as well as the program counter register and related garbage‑collection behavior.

HeapJVMMetaspace
0 likes · 14 min read
Understanding JVM Memory Layout: Heap, Metaspace, and Stack Explained
TAL Education Technology
TAL Education Technology
Jul 1, 2022 · Fundamentals

Why the JVM Can Run Cross‑Platform and an In‑Depth Look at Its Internal Architecture

This article explains how the Java Virtual Machine achieves write‑once‑run‑anywhere by abstracting platform differences, then details the JVM’s internal components—including the class‑loader subsystem, runtime data areas such as heap, stack, method area, and program counter—followed by code examples and analysis of object layout, pointer compression, and memory allocation strategies.

Garbage CollectionHeapJVM
0 likes · 30 min read
Why the JVM Can Run Cross‑Platform and an In‑Depth Look at Its Internal Architecture
Top Architect
Top Architect
Jun 24, 2022 · Fundamentals

Understanding JVM Memory Layout: Heap, Metaspace, Stacks, and Program Counter

This article explains the JVM memory architecture, covering the heap (young and old generations, Eden and Survivor spaces), Metaspace, virtual machine stacks, native method stacks, and the program counter register, while also illustrating key JVM parameters and bytecode execution with examples.

Garbage CollectionHeapJVM
0 likes · 13 min read
Understanding JVM Memory Layout: Heap, Metaspace, Stacks, and Program Counter
NiuNiu MaTe
NiuNiu MaTe
Dec 31, 2021 · Fundamentals

Master TopK: From Simple Sorts to Heap and QuickSelect Solutions

This article explains the TopK problem, compares sorting‑based O(nk) approaches with heap‑based O(n + k log n) and quick‑select O(n) methods, and provides complete Java implementations for each technique, helping readers ace interview questions on finding the largest K elements.

HeapSortingquickselect
0 likes · 13 min read
Master TopK: From Simple Sorts to Heap and QuickSelect Solutions
JavaEdge
JavaEdge
Nov 19, 2021 · Fundamentals

Master Sliding Window Maximum with Heap and Deque – Step-by-Step Solution

This article explains how to compute the maximum of each k‑sized sliding window over an integer array using both a priority‑queue (heap) approach and an optimized monotonic deque technique, complete with detailed walkthroughs, visual illustrations, and full Python code.

HeapSliding Windowalgorithm
0 likes · 9 min read
Master Sliding Window Maximum with Heap and Deque – Step-by-Step Solution
Top Architect
Top Architect
Oct 6, 2021 · Fundamentals

Understanding JVM Memory Layout and Allocation

This article provides a comprehensive overview of the Java Virtual Machine memory architecture, covering heap layout, allocation, tuning parameters, garbage collection, stack frames, method area, metaspace, native method stack, program counter, direct memory, and code cache, with practical code examples and diagnostics.

HeapJVMMemory Management
0 likes · 16 min read
Understanding JVM Memory Layout and Allocation
Architect
Architect
Sep 9, 2021 · Fundamentals

Understanding JVM Memory Structure: Areas, Allocation, and Tuning

This article provides a comprehensive overview of the Java Virtual Machine memory layout, explaining each region such as the heap, metaspace, stack, program counter, direct memory and code cache, along with allocation strategies, tuning parameters, and practical OOM demonstrations.

Garbage CollectionHeapJVM
0 likes · 16 min read
Understanding JVM Memory Structure: Areas, Allocation, and Tuning
Intelligent Backend & Architecture
Intelligent Backend & Architecture
May 14, 2021 · Fundamentals

Master Hash Tables, Heaps, and Graph Algorithms: From Basics to Dijkstra

This article introduces core data structures—hash tables, heaps, and graphs—explains their definitions, visual representations, and key operations, then delves into fundamental graph algorithms such as BFS, Dijkstra, Floyd, minimum spanning trees, and topological sorting, illustrating each with examples and code.

Data StructuresDijkstraHeap
0 likes · 16 min read
Master Hash Tables, Heaps, and Graph Algorithms: From Basics to Dijkstra
Liangxu Linux
Liangxu Linux
May 9, 2021 · Fundamentals

How Linux Allocates Heap Memory: Inside vm_area_struct and the brk System Call

This article explains the Linux kernel's heap memory allocation process, covering the vm_area_struct and mm_struct data structures, the brk system call implementation, and the page‑fault handling that maps virtual addresses to physical memory, while also mentioning other allocation mechanisms such as mmap and HugePages.

HeapLinux kernelPage Fault
0 likes · 12 min read
How Linux Allocates Heap Memory: Inside vm_area_struct and the brk System Call
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Apr 21, 2021 · Fundamentals

Understanding Java 8 Memory Structure: JVM Areas, Stack, Heap, and Native Memory

This article explains Java 8's memory architecture, detailing the differences between JVM-managed memory and native memory, and describing each runtime data area—including the program counter, JVM stack, native method stack, heap, method area, and direct memory—along with common questions about variable storage and native methods.

HeapMemory ManagementNative Memory
0 likes · 13 min read
Understanding Java 8 Memory Structure: JVM Areas, Stack, Heap, and Native Memory
DeWu Technology
DeWu Technology
Apr 2, 2021 · Fundamentals

How Android’s ART Runtime Manages Heap Memory: A Deep Dive into GC Structures

This article explains why reading the ART virtual‑machine source is valuable, compares Dalvik and ART, outlines the GC source hierarchy, details the Space class architecture—including accounting, allocator, collector, and specific spaces like LargeObjectSpace, BumpPointerSpace, and RegionSpace—then analyzes heap construction, PreZygoteFork processing, memory‑map layout, and the full Java‑object allocation flow in ART.

ARTAndroidGarbage Collection
0 likes · 43 min read
How Android’s ART Runtime Manages Heap Memory: A Deep Dive into GC Structures
Selected Java Interview Questions
Selected Java Interview Questions
Mar 10, 2021 · Fundamentals

Understanding Java Heap, Stack, Metaspace, and Direct Memory OutOfMemoryError with Examples

This article explains the causes of various Java OutOfMemoryError scenarios—including heap, stack, metaspace, and direct memory overflow—provides diagnostic tools, shows reproducible code examples, and offers practical solutions such as adjusting JVM parameters and optimizing code to prevent memory exhaustion.

HeapJVMMetaspace
0 likes · 17 min read
Understanding Java Heap, Stack, Metaspace, and Direct Memory OutOfMemoryError with Examples
Big Data Technology & Architecture
Big Data Technology & Architecture
Dec 24, 2020 · Big Data

Common Techniques for Processing Massive Data Sets

This article summarizes a range of practical methods—including Bloom filters, hashing, bit‑maps, heaps, bucket partitioning, database indexes, inverted indexes, external sorting, trie trees, and MapReduce—that are commonly used to handle, deduplicate, and query extremely large data volumes in big‑data applications.

Big DataHashingHeap
0 likes · 11 min read
Common Techniques for Processing Massive Data Sets
WeDoctor Frontend Technology
WeDoctor Frontend Technology
Dec 8, 2020 · Frontend Development

How React’s Fiber Scheduler Breaks Down Tasks for Smooth Rendering

This article explains React 16’s new Fiber architecture and its cooperative scheduling algorithm, showing how large diff tasks are split into small asynchronous units using priority queues and min‑heap structures, with code examples, performance visuals, and insights into real‑time and delayed task handling.

FiberHeapReact
0 likes · 20 min read
How React’s Fiber Scheduler Breaks Down Tasks for Smooth Rendering
IT Xianyu
IT Xianyu
Nov 3, 2020 · Fundamentals

Value vs Reference Passing in Java: Concepts, Stack vs Heap, and Code Examples

This article explains the difference between value passing and reference passing in Java, clarifies how primitive and object types are stored in stack and heap, and demonstrates the behavior with concrete code examples showing how modifications affect (or do not affect) the original arguments.

HeapParameter PassingStack
0 likes · 6 min read
Value vs Reference Passing in Java: Concepts, Stack vs Heap, and Code Examples
Programmer DD
Programmer DD
Sep 6, 2020 · Fundamentals

Understanding Java JVM Memory Model: All Runtime Data Areas Explained

This article provides a comprehensive overview of the Java Virtual Machine memory model, detailing each runtime data area—including the heap, stacks, method area, program counter, and direct memory—and explains their purposes and interactions within Java applications.

HeapJVMMemory Model
0 likes · 4 min read
Understanding Java JVM Memory Model: All Runtime Data Areas Explained
Liangxu Linux
Liangxu Linux
Jul 20, 2020 · Fundamentals

Essential Big O Cheat Sheet: Quick Reference for Algorithm Complexity

This article presents a concise Big O cheat sheet that aggregates the time‑complexity notations for common data structures, sorting algorithms, graph and heap operations, and visualizes performance curves, helping readers quickly recall best‑, worst‑, and average‑case scenarios.

Big OCheat SheetData Structures
0 likes · 3 min read
Essential Big O Cheat Sheet: Quick Reference for Algorithm Complexity
Architect's Tech Stack
Architect's Tech Stack
Jan 18, 2020 · Fundamentals

JVM Memory Architecture: Overview, Heap, Metaspace, Stack, and More

This article provides a comprehensive overview of the Java Virtual Machine memory layout, covering heap regions, Metaspace, stack frames, native method stack, program counter, direct memory, and code cache, along with configuration tips, diagnostic commands, and illustrative code examples to help readers understand memory allocation and garbage collection.

Garbage CollectionHeapJVM
0 likes · 16 min read
JVM Memory Architecture: Overview, Heap, Metaspace, Stack, and More
Programmer DD
Programmer DD
Sep 27, 2019 · Fundamentals

Why Does a Java Process Use Far More Memory Than Its Heap?

This article explains why a Java process consumes far more virtual memory than the configured heap size by detailing JVM subsystems, off‑heap allocations, native libraries, thread stacks, and other factors that contribute to overall memory usage.

HeapJVMMemory Management
0 likes · 7 min read
Why Does a Java Process Use Far More Memory Than Its Heap?
Architect's Tech Stack
Architect's Tech Stack
Jul 10, 2019 · Backend Development

Common Java OutOfMemoryError Causes and Their Solutions

This article enumerates the most frequent Java OutOfMemoryError scenarios—including heap space exhaustion, GC overhead limits, oversized array allocations, PermGen/Metaspace depletion, thread creation failures, and native method errors—detailing their causes and practical JVM flag or code fixes to resolve them.

HeapJVMOutOfMemoryError
0 likes · 7 min read
Common Java OutOfMemoryError Causes and Their Solutions
Java Captain
Java Captain
Dec 17, 2018 · Fundamentals

Understanding Java Heap and Stack Memory with Examples

This article explains the differences between Java heap and stack memory, their advantages and disadvantages, and demonstrates how string objects are stored and shared using code examples that illustrate memory allocation and reference behavior.

Garbage CollectionHeapMemory Management
0 likes · 4 min read
Understanding Java Heap and Stack Memory with Examples
21CTO
21CTO
Sep 21, 2018 · Big Data

Master Massive Data Processing: Key Techniques from Hash Maps to MapReduce

This comprehensive guide explores essential strategies for handling massive datasets, covering hash-based structures, bucket partitioning, heap and quicksort techniques, trie trees, Bloom filters, external sorting, and MapReduce, and demonstrates how to efficiently solve common interview problems such as top‑K queries and duplicate removal.

Data StructuresHashHeap
0 likes · 35 min read
Master Massive Data Processing: Key Techniques from Hash Maps to MapReduce
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 8, 2018 · Fundamentals

Understanding Java Reference Types and JVM Memory Management

This article explains Java's four reference types, the JVM's memory layout, object lifecycle states, common garbage‑collection algorithms, collector implementations, heap segmentation, class‑loading mechanics, and includes typical interview questions to help developers master memory management in Java.

Garbage CollectionHeapJVM
0 likes · 15 min read
Understanding Java Reference Types and JVM Memory Management
Java Architect Essentials
Java Architect Essentials
Mar 5, 2018 · Fundamentals

Common Data Structures in Java: Arrays, Lists, Queues, Stacks, Sets, Maps, Trees, and Heaps

This article introduces fundamental data structures such as arrays, linked lists, queues, stacks, sets, maps, various tree types including binary and AVL trees, and heaps, explaining their characteristics, time complexities, Java implementations like ArrayList, LinkedList, HashSet, TreeMap, and providing illustrative diagrams and code snippets.

AVL treeAlgorithmsHashMap
0 likes · 23 min read
Common Data Structures in Java: Arrays, Lists, Queues, Stacks, Sets, Maps, Trees, and Heaps
21CTO
21CTO
Mar 23, 2016 · Fundamentals

Master PHP Data Structures: Stack, Queue, and Min-Heap with SPL

This article explains the concept of heaps, especially min‑heaps, and demonstrates how PHP's SPL provides ready‑made implementations for stacks, queues, min‑heaps, and fixed‑size arrays with clear code examples.

Data StructuresHeapPHP
0 likes · 3 min read
Master PHP Data Structures: Stack, Queue, and Min-Heap with SPL