Home »
MCQs »
Scala MCQs
Method used to get the length of array in Scala –
98. Method used to get the length of array in Scala -
- Array.len
- length(arr)
- arr.size
- sizeof(arr)
Answer: C) arr.size
Explanation:
Scala method arr.size is used to get the length of an array.