Home » JAVA Programming » Arrays » Question
  1. Which of these operators is used to allocate memory to array variable in Java?
    1. new
    2. new malloc
    3. alloc
    4. malloc
    5. None of these
Correct Option: A

Operator new allocates block of memory specified by the size of array, and gives the reference of memory allocated to the array variable.



Your comments will be displayed only after manual approval.