Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these operators is used to allocate memory to array variable in Java?
  2. A.
    malloc
    B.
    alloc
    C.
    new
    D.
    new malloc

    View Answer

    Workspace

    Answer : Option C

    Explanation :

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


Be The First To Comment