int array in java not initializated code example Example: java initialize int array int[] arr = new int[n];