✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
The following lines of code produces an error in Scala
object example{
def main(args: Array[String]): Unit={
val str="hello"
println(str)
str="world"
println(str)
}
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!