MCQ Single Best Answer Not Set

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

ID: #4349 Array in Java 441 views
Question Info
#4349Q ID
Not SetDifficulty
Array in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A malloc
  • B alloc
  • C new
  • D new malloc
Correct Answer: Option C

Explanation

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

Share This Question

Challenge a friend or share with your study group.