Every new Object() in Java is much cheaper than malloc() in C because threads allocate straight inside Thread-Local Allocation Buffers (TLABs) via a single pointer bump—yet small objects carry an 8- or 12-byte header and round to 8-byte boundaries!
More lessons in Complete Core Java