Computer Science, asked by BHIMAVADAN, 5 months ago

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 Anonymous
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