Advertisements
Advertisements
Question
Keyword that helps in allocating memory to an objects is ______.
Options
private
new
class
public
MCQ
Fill in the Blanks
Advertisements
Solution
Keyword that helps in allocating memory to an objects is new.
Explanation:
In Java, the new keyword is an operator that dynamically allocates memory on the heap for a new object or array at runtime.
shaalaa.com
Is there an error in this question or solution?
Chapter 2: Class as the Basis of all Computation - Exercises [Page 64]
