A

Admin • 831.35K Points
Coach

Q. What is returned by arr.length for an array arr = new int[10]?

  • (A) 9
  • (B) 10
  • (C) 11
  • (D) undefined
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Java
  • Hashtags: Java Array

Explanation by: Admin
arr.length returns the size of the array, which is 10.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.