Issue
I learned that there are two types of data types (complex and primitive). The difference should lie in the fact that the complex data types have or can output more than one content. I have noted String or the scanner as examples.
I also learned that complex data types are nothing more than classes. The assignment using "new" then creates objects from these classes / complex data types, which in turn can be referred to as objectives or complex variables.
Now, with the array, I am not sure whether this is the same or should be understood differently. Because with the array (at least in java) an additional declaration is made, for example int [] = new int [6]; Since it looks so different to other complex data types and arrays are also referred to as data structures, I wanted to know whether I understood everything correctly and whether it can also be transferred to the array.
Solution
In the Java programming language, arrays are objects (§4.3.1), are dynamically created, and may be assigned to variables of type Object (§4.3.2). All methods of class Object may be invoked on an array.
Answered By - Anton Belev