Programming Language › Array in Java › Question #4349
Single Choice Not Set

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

ID: #4349 Array in Java 489 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

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.