A

Admin • 825.56K Points
Coach

Q. What is printed?
int[] a = new int[3];
a[0] = 5;
System.out.println(a[0]);

  • (A) 5
  • (B) 0
  • (C) 1
  • (D) null

Explanation by: Admin
Value 5 is assigned to a[0], so it prints 5.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.