Scala / Scala interview questions
How do I use Scala reserved keyword as identifier?
Use backtick to access Scala reserved keyword as identifier. For example, use yield with backticks to ignore the Scala's yield and access the Java's Thread class's method yield instead.
Thread.`yield`()
More Related questions...