java initialize int array default value code example Example: java initialize int array int[] arr = new int[n];