If Seq is a trait then why is var x = Seq(1, 2, 3) legal?
Correct Answer: You are calling the apply method on the object
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Scala Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Scala MCQ Questions
Statement that is not correct for parallel collections?
Choose the correct statement which shows the output?
Statement that is not correct using the code below?
Choose output of the given code?
Choose output of given code below?
What's the output?
Which statement is false for traits?
Which one is not reserved word in Scala?
Which one is Web Frameworks of Scala?
Option that best describes the difference between a var and val definition in Scala?