Is an array a type of object Java?

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Is an array a type of object Java?

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.

Leave a Reply

Your email address will not be published. Required fields are marked *