which operators is used to allocate memory for an object(the one who answers correctly will get 15 points).be careful while answering.
Answers
Answered by
1
Answer:
Operator new dynamically allocates memory for an object and returns a reference to it. This reference is address in memory of the object allocated by new.The new operator instantiates a class by dynamically allocating(i.e, allocation at run time) memory for a new object and returning a reference to that memory. This reference is then stored in the variable. Thus, in Java, all class objects must be dynamically allocated.
Similar questions
Hindi,
2 months ago
Math,
2 months ago
Math,
5 months ago
Science,
5 months ago
Accountancy,
10 months ago