What is the output of following code?
def main(args: Array[String]) { val x = {print("x");1} lazy val y = {print("y");2} def z = {print("z"); 3} z+y+x+z+y+x }
Correct Answer: xzyz
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Scala MCQ Questions