Computer Science, asked by Nikhildcruz4095, 1 year ago

Which keyword is used to create an instance of array?

Answers

Answered by KartikSharma13
0
This keyword is also used to declare that a method returns a value of the primitive type long . Used in method declarations to specify that the method is not implemented in the same Java source file, but rather in another language. Used to create an instance of a class or array object.
Answered by Anonymous
39

Explanation:

Explanation:

The Java new keyword is used to create an instance of the class. In other words, it instantiates a class by allocating memory for a new object and returning a reference to that memory. We can also use the new keyword to create the array object.

Similar questions