What is the difference between a var and val definition in Scala and why does the language need both? Why would you choose a val over a var and vice versa?

13 Answers
13

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *