Programming Language Features

  1. JVM memory allocation doesn't happen until new keyword object creation or variable initialization is performed. The memory of primitive type variables are allocated on stack while others are allocated on heap.

The declaration of array variables does not require array size to be specified, which is different to C++ array declaration.