Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are the differences between Case class and Normal Class?



What are the differences between Case class and Normal Class?..

Answer / Avinash Kumar Munda

A case class in Scala is a lightweight alternative to regular classes that provides several useful features like automatic generation of toString, hashCode, equals, and copy methods. A normal class does not have these generated methods and requires explicit implementation. Case classes also provide pattern matching support. Additionally, case classes create immutable objects by default, while regular classes can be either mutable or immutable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is the advantage of Scala?

1 Answers  


What is the use of ‘yield’ keyword in Scala’s for-comprehension construct?

1 Answers  


What is the result of x+y*z and why?

1 Answers  


Is scala the best language ever?

1 Answers  


Explain the difference between function and method in scala?

1 Answers  


What is the best Framework to generate REST API documentation for Scala-based applications?

1 Answers  


What are implicit parameters in Scala?

1 Answers  


Why is an option used in scala?

1 Answers  


mention the types of variables in scala? And what is the difference between them?

1 Answers  


Difference between Scala’s Inner class and Java’s Inner class?

1 Answers  


What is the equivalent construct of Scala’s Option in Java SE 8? What is the use of Option in Scala?

1 Answers  


What is Scala?

1 Answers  


Categories