MCQs > IT & Programming > Scala > If Seq is a trait then why is var x = Seq(1, 2, 3) legal?

Scala MCQs

If Seq is a trait then why is var x = Seq(1, 2, 3) legal?

Answer

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

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Scala Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it