Which of these operators is used to allocate memory to array variable in Java?
A. malloc
B. alloc
C. new
D. new malloc
Answer:A
Which of these operators is used to allocate memory to array variable in Java?
A. malloc B. alloc C. new D. new malloc
Explanation:Operator new allocates block of memory specified by the size of array, and gives the reference of memory allocated to the array variable.