Learn Java - How to Declare an Array?
An array in Java is an object. However, this object receives special treatment of the language itself and JVM (as with String). Declaring and Initializing Arrays in Java The array object gathers together other objects…