Is a Java array of primitives stored in stack or heap? Is a Java array of primitives stored in stack or heap? java java