0 votes
in JAVA by
How to create an array of objects in java?

1 Answer

0 votes
by

How to create an array of objects in java?

One way to initialize the array of objects is by using the constructors. When you create actual objects, you can assign initial values to each of the objects by passing values to the constructor. You can also have a separate member method in a class that will assign data to the objects.

🔗Reference: stackoverflow.com

🔗Source: Java Interview Questions and Answers

Related questions

0 votes
asked Oct 9, 2020 in JAVA by SakshiSharma
+1 vote
asked Jan 24, 2020 in JAVA by rahuljain1
...