Home »
MCQs »
Scala MCQs
To create a loop breakable in Scala, do we need to enclose it?
69. To create a loop breakable in Scala, do we need to enclose it?
- break
- loop.breakable
- breaks
- None of these
Answer: B) loop.breakable
Explanation:
To create a loop breakable in Scala, do we need to enclose it by loop.breakable.