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 512 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.
Today: 0 answered · 0 correct
Save progress
Free account

Want to remember what you got wrong?

Create a free account in seconds to track your score, revisit mistakes and continue Programming Language where you left off.

  • Save your progress & streak
  • Topic-wise quizzes & scores
  • Bookmark tricky questions
  • Printable MCQ sets
Practice smarterFree account · save progress
Sign up free

Share This Question

Challenge a friend or share with your study group.