Java Autoboxing and Unboxing
Learn Java autoboxing and unboxing: wrapper conversions, cache guarantees, null failures, performance trade-offs, and a reproducible JMH benchmark recipe.
Learn Java autoboxing and unboxing: wrapper conversions, cache guarantees, null failures, performance trade-offs, and a reproducible JMH benchmark recipe.
Learn Java bitwise operators: AND, OR, XOR, NOT, and shifts, with fixed-width masks, flag examples, right-shift behavior, and safe cryptography guidance.
Learn when to use Java break and continue, how labels control nested loops, and when extracting a search into a method with an early return reads more clearly.
See how Java bridge methods preserve generic overrides after type erasure, inspect representative javap output, and distinguish bridges from overloads.
Learn how Java classes define fields and methods, how constructors initialize objects, and how to create and use instances with the new keyword.
Learn how java.util.Collections sorts and searches lists, how access affects operation costs, and how synchronized wrappers and unmodifiable views behave.
Compare composition and inheritance in Java, with examples of concrete collaborators, interface-backed substitution, delegation, and safe payment retries.
Understand Java constructor initialization, this() delegation cycles, JVM allocation choices, and safe publication with final fields.
Choose Java custom exceptions for domain failures, preserve internal causes, and return stable error codes with localized safe messages at API boundaries.
Learn how Java encapsulation uses private fields, domain methods, validation, and defensive copies to preserve invariants and limit data exposure.