Important Java Mcq 1

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

a) malloc

b) alloc

c) new

d) new malloc

Answer

c) new

Explanation:

The new operator is used to allocate a block of memory specified by the size of an array to the array variable.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?