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 is case object?



What is case object?..

Answer / Ajay Tyagi

A case object in Scala is a special type of case class that implicitly defines an empty constructor, equals and hashCode methods, as well as toString. It's used to create immutable singleton objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is a monad in scala?

1 Answers  


Why do we need app in scala?

1 Answers  


What is the difference between Function and Method in Scala?

1 Answers  


In Scala, Pattern Matching follows which Design Pattern? In Java, ‘isinstanceof’ operator follows which Design Pattern?

1 Answers  


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

1 Answers  


Explain either/left/right design pattern in scala?

1 Answers  


What is the difference between Case Object and Object(Normal Object)?

1 Answers  


What is the difference between apply and unapply methods in scala?

1 Answers  


Write a few frameworks of scala?

1 Answers  


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

1 Answers  


How do you define a function in scala?

1 Answers  


What is case object?

1 Answers  


Categories