6 years ago in Java Arrays

Which of the following statements are valid array declarations?
A. int number();
B. int number[];
C. double[] marks;
D. counter int[];

[A] A,B,C
[B] B,C
[C] C,D
[D] A,B,D
Loading...
Next Question

Overall Stats

Attempted 216
Correct 124
Incorrect 26
Viewed 66

Answers

Guest
Guest
Youssef Aserrar
Youssef Aserrar - 6 days ago

Youssef Aserrar from Casablanca, Morocco is saying B,C is correct answer

Salah Eddine
Salah Eddine - 1 week ago

Salah Eddine from Casablanca, Morocco is saying B,C is correct answer

Bharath
Bharath - 2 months ago

Bharath from Hyderabad, India is saying B,C is correct answer

Renuka Siriwardhana
Renuka Siriwardhana - 4 months ago

Renuka Siriwardhana from Colombo, Sri Lanka is saying B,C is correct answer

Shamsa hafeez
Shamsa hafeez - 7 months ago

Shamsa hafeez from Lahore, Pakistan is saying B,C 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