A

Admin • 825.56K Points
Coach

Q. What is the output?
int[] arr = new int[5];
System.out.print(arr[2]);

  • (A) 0
  • (B) 2
  • (C) null
  • (D) undefined

Explanation by: Admin
Default value for int elements in an array is 0.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.