how to make a fixed size array in java

Java
dataType[] arrayRefVar = new dataType[arraySize];
Source

Also in Java: