5 years ago in Java Arrays

What will be printed using following code block?
int[] a = {0,1,2,3,4,5,6,7};
System.out.println(a.length);

[A] 6
[B] 7
[C] 8
[D] 9
Loading...
Next Question

Overall Stats

Attempted 445
Correct 209
Incorrect 75
Viewed 161

Answers

Guest
Guest
nikunj jhala
nikunj jhala - 2 weeks ago

nikunj jhala from Mumbai, India is saying 8 is correct answer

bruh
bruh - 4 weeks ago

bruh from Guwahati, India is saying 8 is correct answer

Vaibhav Bisht
Vaibhav Bisht - 4 weeks ago

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

Zo Go
Zo Go - 1 month ago

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

HD
HD - 1 month ago

HD from Kenitra, Morocco is saying 8 is correct answer

Related Questions

Which of these is necessary to specify at time of array initialization?

  • [A] Row
  • [B] Column
  • [C] Both Row and Column
  • [D] None of the mentioned