Following Scala
code in Azure Synapse
should print: Hello, World!
. But instead, it prints: defined object Geeks
.
Question: What could be the issue and how can we fix it?
object Geeks {
// Main method
def main(args: Array[String])
{
// prints Hello, Geeks!
println("Hello, World!")
}
}