Which keywords are NOT reserved in Scala?
while is just a standard loop construction which is present in Scala.
lazy keyword is used to declare a val which is executed when it is accessed the first time. More information: What does a lazy val do?
Scala leaves out commands break and continue "because they do not mesh well with function literals." More information: Living without break and continue

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Scala quizzes
Sign Up Now
or Subscribe for future quizzes