Home »
MCQs »
Scala MCQs
Methods which can be used to remove/ delete users from arrayBuffer in Scala?
97. Methods which can be used to remove/ delete users from arrayBuffer in Scala?
- arrayBuffer.remove()
- arrayBuffer.delete()
- arrayBuffer.push()
- All of these
Answer: A) arrayBuffer.remove()
Explanation:
The Scala method arrayBuffer.remove() is used to remove/delete from arrayBuffer.