Explain different types of identifiers in Scala?
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.`
BY Best Interview Question ON 08 Feb 2019