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,
5 months ago
English,
5 months ago
Math,
5 months ago
History,
10 months ago
Math,
10 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago