Advertisements
Advertisements
Question
What is the purpose of the new operator?
Short Answer
Solution
new is a Java operator for creating an object (instance). It dynamically allocates memory for the object during runtime. It is also used to create arrays.
shaalaa.com
Is there an error in this question or solution?