Allocation in Java vs C/C++
ibm.com