Home »
MCQs »
Scala MCQs
How to create a mutable array in Scala?
96. How to create a mutable array in Scala?
- Initializing using the var keyword
- Using arrayBuffer
- Adding mutable before initialization
- All of these
Answer: B) Using arrayBuffer
Explanation:
Read more: ArrayBuffer in Scala (Creating Mutable Arrays)