MCQs > IT & Programming > Scala > Explain how "abc".length returns 3

Scala MCQs

Explain how "abc".length returns 3

Answer

Correct Answer: An implicit conversion converts the java.lang.String into a scala.collection.immutable.StringOps, which supports a length method.

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