Scala / Scala interview questions
Difference between val and lazy val in Scala.
The difference is, that a val is executed when it is defined whereas a lazy val is executed when it is accessed the first time.
More Related questions...
The difference is, that a val is executed when it is defined whereas a lazy val is executed when it is accessed the first time.
More Related questions...