Java Static Array Initialization Guide
In Java, one way to statically initialize an array is to assign values to the array elements directly when declaring the array. For example:
int[] numbers = {1, 2, 3, 4, 5};
In the example above, we declared an array of type int called numbers and assigned values of 1, 2, 3, 4, and 5 to the array elements. This is a common way of statically initializing an array.