Computer Science, asked by sujayG17, 10 months ago

What are the different ways of initializing arrays in Java?​

Answers

Answered by divyanshu8473
1

Answer:

First, you must declare a variable of the desired array type. Second, you must allocate the memory that will hold the array, using new, and assign it to the array variable. Thus, in Java all arrays are dynamically allocated.

Explanation:

Similar questions