A

Admin • 825.56K Points
Coach

Q. How do you find the length of an array in Java?

  • (A) arr.length()
  • (B) arr.size()
  • (C) arr.length
  • (D) arr.getLength()

Explanation by: Admin
In Java, the length of an array is accessed using arr.length (no parentheses).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.