Tagged articles
3 articles
Page 1 of 1
Java Backend Technology
Java Backend Technology
Jun 25, 2022 · Fundamentals

Why Java Wrapper Classes Can Kill Performance and Trigger NPEs

This article explains how Java wrapper classes, introduced with generics, provide boxing and unboxing sugar but can cause subtle bugs such as incorrect == comparisons, severe performance penalties, unexpected NullPointerExceptions, and confusing API usage, and it offers practical best‑practice guidelines.

BoxingJavaUnboxing
0 likes · 9 min read
Why Java Wrapper Classes Can Kill Performance and Trigger NPEs
Java Captain
Java Captain
May 27, 2019 · Fundamentals

Java Runtime Memory Areas, Object Creation, and Common Interview Questions

This article explains Java's runtime memory regions, including the program counter, stacks, heap, method area, constant pool, and direct memory, and details the HotSpot object creation process, memory layout, access mechanisms, as well as String and wrapper class behaviors, providing essential knowledge for Java interview preparation.

Interview PreparationJVMJava
0 likes · 19 min read
Java Runtime Memory Areas, Object Creation, and Common Interview Questions