6 years ago in Java Arrays

What will be output 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

Create your Digital Resume For FREE on your name's sub domain "yourname.wcard.io". Register Here!


Overall Stats

Attempted 226
Correct 145
Incorrect 10
Viewed 71

Answers

Guest
Guest
samruddhi shendre
samruddhi shendre - 3 months ago

samruddhi shendre is saying 8 is correct answer

Youssef Aserrar
Youssef Aserrar - 7 months ago

Youssef Aserrar from Casablanca, Morocco is saying 8 is correct answer

Meryem Onzy
Meryem Onzy - 7 months ago

Meryem Onzy from Casablanca, Morocco is saying 8 is correct answer

Salah Eddine
Salah Eddine - 7 months ago

Salah Eddine from Casablanca, Morocco is saying 8 is correct answer

Bharath
Bharath - 9 months ago

Bharath from Hyderabad, India 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