how to allocate memory for array in java

how to allocate memory for array in java
/**
 * @author lautturi.com
 * Java example: declare and allocate memory for array in java
 */

import java.util.*;

public class Lautturi {

	public static void main(String[] args) {

		 //declaring an array in java 
		int intArr[];   
		
		// allocating memory to array in java
		intArr = new int[20];  
		
	}
}
Sou‮ww:ecr‬w.lautturi.com
Created Time:2017-09-11 15:22:40  Author:lautturi