215k views
3 votes
What is initialize array java ?

User Dkonayuki
by
7.9k points

1 Answer

5 votes

Step-by-step explanation:

In Java, initializing an array means assigning a set of values to an array. This can be done either one element at a time, or by using a special syntax to assign all elements of the array at once. Examples of initializing arrays include using the new keyword to create an array and using the split() method to parse a string into an array.

User Ganzolo
by
8.0k points