I\'ve been learning scala and I gotta say that it\'s a really cool language. I especially like its pattern matching capabilities and function literals but I come from a javascri
I think some of the responders were a little confused by the way you phrased the question. The Scala construct you want here is a simple lazy definition:
lazy val foo = new java.util.Date
The construction of the Date object will occur at most once and be deferred until the first reference to foo.