5 years ago in Java Arrays

Which of these function is used to allocate memory to array variable in Java?

[A] malloc
[B] alloc
[C] new
[D] calloc
Loading...
Next Question

Overall Stats

Attempted 406
Correct 170
Incorrect 88
Viewed 148

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 3 days ago

Shamsa hafeez from Lahore, Pakistan is saying malloc is correct answer

Rakhi Sharma
Rakhi Sharma - 2 weeks ago

Rakhi Sharma is saying alloc is correct answer

bruh
bruh - 1 month ago

bruh from Guwahati, India is saying new is correct answer

Vaibhav Bisht
Vaibhav Bisht - 1 month ago

Vaibhav Bisht from Dehradun, India is saying new is correct answer

Zo Go
Zo Go - 1 month ago

Zo Go from Casablanca, Morocco is saying malloc is correct answer

Related Questions

Which one of the following will declare an array and initialize it with five numbers?

  • [A] Array a = new Array(5);
  • [B] int [] a = {23,22,21,20,19};
  • [C] int a [] = new int[5];
  • [D] int [5] array;

Arrays in Java are implemented as?

  • [A] class
  • [B] object
  • [C] variable
  • [D] None of the mentioned