1.

Explain different types of identifiers in Scala?

Answer»

There are four TYPES of IDENTIFIERS:

  • Alphanumeric Identifiers: CONTAIN letters, digits, and underscores. Example - myVal.
  • Operator Identifiers: Contain operator characters. Example - +
  • Mixed Identifiers: Contains UNDERSCORE and an operator identifier. Example - myVar
  • Literal Identifiers: Contain ARBITRARY string in backticks(`). Example `class.`


Discussion

No Comment Found