Arithmetic Operators in Java: Division, Overflow, Promotion
Compare Java arithmetic with runnable examples of division, negative remainders, overflow, type promotion, and BigDecimal for decimal money.
Compare Java arithmetic with runnable examples of division, negative remainders, overflow, type promotion, and BigDecimal for decimal money.
Learn Java arrays through runtime-sized allocation, bounds checks, aliasing, copying, and the fixed length that distinguishes them from ArrayList.
Compare ArrayList's Java SE 27 contract with OpenJDK 27 growth behavior, capacity hints, operation costs, fail-fast iterators, and bounded concurrency options.
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.