Question
What is type inference in Scala?
Select an option. Your answer will be checked instantly.
Correct Answer: C. The compiler determines a value's type from its expression
Explanation:
Scala is statically typed even when annotations are omitted.
The compiler infers types where sufficient information exists.
Leave a Reply