Allocation in Java vs C/C++ | Hacker News Reader