MCQs > IT & Programming > Scala > What would be the result of: Option[String]("hi") match { case None=> "hello!" }

Scala MCQs

What would be the result of: Option[String]("hi") match { case None=> "hello!" }

Answer

Correct Answer: A MatchError would be thrown.

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