Home »
MCQs »
Scala MCQs
Which of the following is not a feature of Scala?
4. Which of the following is not a feature of Scala?
- Type inference
- Lazy Computation
- High order function
- None of the above
Answer: D) None of the above
Explanation:
Some common features of Scala are,
- It runs on a JVM but the compiler is different.
- Integrates Features of both Object-Oriented Programming and Functional Programming.
- Lazy Computation increases performance, the expression evaluates only when its evaluation is required.
- Immutability: it means the value of data cannot be changed by default.
- Case Classes and Pattern Matching.
- Type Interface: It recognizes data type and functions return type itself.
- Concurrency Control: Scala Provide concurrency control using the actor model.
- High Order Function: A function that works on another function.