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

Is Scala an Expression-Based Language or Statement-Based Language? Is Java an Expression-Based Language or Statement-Based Language?

1 Answers  


Why do we use =(equal) operator in scala function?

1 Answers  


Why is an option used in scala?

1 Answers  


Explain the scope provided for variables in scala.

1 Answers  


Mention the advantages of scala?

1 Answers  


Explain the operators in scala?

1 Answers  


What square measure the Scala variables?

1 Answers  


What are the advantages of case class?

1 Answers  


What is a function literal in scala?

1 Answers  


What is a monad in scala? Explain

1 Answers  


Is scala easy to learn?

1 Answers  


How Scala solves Inheritance Diamond Problem automatically and easily than Java 8?

1 Answers  


Categories