Loops look trivial until they're the reason your service falls over at scale. I broke down what actually happens under the hood in Java, the memory pitfalls I've seen bite real production systems, and the optimizations that matter once you're past toy examples.