Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Java Basics: Beyond the Fundamentals
·
Module 5
Core Language Internals: Types, Strings, and Semantics
Primitives vs. Wrappers: Memory & Behavior
Explain how primitive types and their wrapper classes differ in memory storage and behavior.
2
Autoboxing and Unboxing Mechanics
Describe autoboxing and unboxing mechanics, including compiler-inserted calls and the Integer object cache.
3
Python Strings: Immutability and Interning
Explain String immutability, its design rationale (security, hashing, thread safety), and the behavior of the intern() method.
4
String Pool vs. Heap: Allocation Differences
Differentiate String constant pool allocation (literals) from heap allocation (new String()).
StringBuilder vs. StringBuffer: A Deep Dive
Compare StringBuilder and StringBuffer in terms of internal array management, resizing strategy, and thread safety.
6
Type Erasure and Bridge Methods in Generics
Describe type erasure in generics and how bridge methods are used to preserve polymorphism.
Java's Pass-By-Value: Primitives and Object References
Explain Java's pass-by-value semantics for both primitive types and object references with precise examples.
8
Understanding the `final` Keyword
Describe the semantics of the `final` keyword on variables, methods, and classes.
Previous module
Garbage Collection Internals
Next module
Concurrency Primitives and Patterns