InterviewSolution
Saved Bookmarks
| 1. |
What are different types of Identifiers in Scala? |
|
Answer» Identification is done with the help of identifiers in programming languages. The identifiers in Scala are case-sensitive and can be class, method, variable, or object name. Example: class InterviewBit { var x: Int = 45 } object Scaler { def main(args: Array[String]) { var y = NEW InterviewBit(); } }As you can see from the above example, we have six identifiers:
Types of Identifiers
|
|