Can you store objects in an array?

Storing Objects in an array Yes, since objects are also considered as datatypes (reference) in Java, you can create an array of the type of a particular class and, populate it with instances of that class.

Sizin İçin Seçtik  How do you display an array in Java?

Leave a Reply

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

Can you store objects in an array?

Storing Objects in an array Yes, since objects are also considered as datatypes (reference) in Java, you can create an array of the type of a particular class and, populate it with instances of that class.

Sizin İçin Seçtik  Does Verizon use GSM 2021?

Leave a Reply

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