Method used to get the length of array in Scala –

98. Method used to get the length of array in Scala -

  1. Array.len
  2. length(arr)
  3. arr.size
  4. sizeof(arr)

Answer: C) arr.size

Explanation:

Scala method arr.size is used to get the length of an array.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.