Question 54

Computer Awareness Data Structure Medium

Which of these operators is used to allocate memory to array variable in Java?

(A) Malloc
(B) Alloc
(C) New
(D) New malloc
View Dynamic Solution & Explanation
Correct Solution: Option C

Step-by-step Solution:

In Java, the ttnew operator is used to allocate memory for arrays and objects. When creating an array, the ttnew operator allocates memory based on the specified size of the array. \[\] Correct Option: (c)