object Quizful {
def main(args: Array[String]) {
println(s"Delayed time: ${delayed(time())}")
}
def time() = {
println("Getting time in nano seconds")
System.nanoTime
}
def delayed( t: => Long ) = {
println("In delayed method")
println("Param: " + t)
t
}
}
What will be printed into the console after running this programm?
Login in to like
Login in to comment