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 advantages of case class?



What are the advantages of case class?..

Answer / Vipul Bhushan Mishra

Case classes in Scala offer several advantages:n1. Automatic Generation of Equality, HashCode and ToString methods.n2. Implicitly defined apply and unapply methods for creating and deconstructing instances.n3. Easy construction with named parameters.n4. Tuples-like syntax for pattern matching.n5. Constructors are automatically made public.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

Explain the difference between java and scala?

1 Answers  


List the default imports are available in scala language?

1 Answers  


Why do we need app in scala?

1 Answers  


what are the features of scala?

1 Answers  


What is list in scala collection?

1 Answers  


When can you use traits?

1 Answers  


Is Scala a Pure OOP Language? or Java a Pure OOP Language?

1 Answers  


What is REPL in Scala? What is the use of Scala’s REPL? How to access Scala REPL from CMD Prompt?

1 Answers  


Why Scala does NOT have 'static' keyword? What is the main reason for this decision?

1 Answers  


What is 'Type Inference' in Scala?

1 Answers  


What is vector in scala collection?

1 Answers  


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

1 Answers  


Categories