When compare to Normal Class, What are the major advantages or benefits of a Case-class?



When compare to Normal Class, What are the major advantages or benefits of a Case-class?..

Answer / Pooja Singh

Major advantages of Case-classes in Scala include: immutability, constructor parameter checking, pattern matching support, and easier serialization/deserialization.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is Statically-Typed Language and What is Dynamically-Typed Language?

1 Answers  


How many values of type Nothing have in Scala?

1 Answers  


Explain que with example?

1 Answers  


What are higher-order functions?

1 Answers  


Explain the operators in scala?

1 Answers  


What is currying in scala?

1 Answers  


What do you understand by tail recursion in scala ?

1 Answers  


What is an Anonymous Function In Scala? What is a Function Literal in Scala? What are the advantages of a Anonymous Function/Function Literal in Scala?

1 Answers  


What is Scala anonymous function?

1 Answers  


What is implicit class in scala?

1 Answers  


What do you mean by option in scala and why it is used?

1 Answers  


What is the diamond problem in scala?

1 Answers  


Categories