What is the final class in scala?
Answer / Anuj Srivastava
The `final` keyword in Scala is used to prevent a class or method from being overridden by subclasses. When a class is declared as final, it cannot be subclassed, and when a method is declared as final, it cannot be overridden.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why Scala does NOT have 'static' keyword? What is the main reason for this decision?
What is tail recursion in scala?
Explain pattern matching in scala through an example?
What are left and right in scala?
Explain trait in scala and its uses?
Is Scala an Expression-Based Language or Statement-Based Language? Is Java an Expression-Based Language or Statement-Based Language?
What is method overriding in scala?
What is the difference between Case Object and Object(Normal Object)?
What do you mean by trait in scala and when it is used?
What does set in scala collection?
Why is scala good for big data?
What are the Scala Features?