I wrote a code below in Scala .
object Main {
def main(args: Array[String]): Unit = {
println(main)
}
}
It gave output as :
Main$$$Lambda$3/1543727556@3930015a
Why is this value returned ?
Also, When I wrote a simple method like one below :
def wow(): Unit = {
println(wow)
}
But it gives compilation error.