Computer Science, asked by Krishoo7, 10 months ago

What is the use of "new" keyword in java?

Answers

Answered by gandhisarika21
3

Answer:

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