What is the use of "new" keyword in java?
Answers
Answered by
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
Math,
4 months ago
English,
4 months ago
History,
7 months ago
Math,
7 months ago
Social Sciences,
10 months ago
Social Sciences,
10 months ago