Computer Science, asked by binaybarla760, 9 months ago

how to define object array ?​

Answers

Answered by Anonymous
1

Answer:

here Ur Answer

An array is a collection of items. Each slot in the array can hold an object or a primitive value. Arrays in Java are objects that can be treated just like other objects in the language. Arrays can contain any type of element value (primitive types or objects), but you can't store different types in a single array.

Answered by Oreki
1

Declaring An Array Of Objects In Java

We use the class name Object, followed by square brackets to declare an Array of Objects.

Object[ ] JavaObjectArray; or,

Object JavaObjectArray[ ];

Similar questions