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 a companion object in scala?



What is a companion object in scala?..

Answer / Vinod Kumar Tiwari

"A 'companion object' in Scala is a special type of object that shares the same name as its accompanying class. It provides an alternative way to access methods and values defined within the class without creating an instance of it."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is Nothing in Scala? What is Nil in Scala? What is the relationship between Nothing and Nil in Scala?

1 Answers  


What is the use of auxiliary constructors in scala? explain the rules to follow in defining auxiliary constructors in scala?

1 Answers  


What is the access modifier in scala?

1 Answers  


Explain how scala is both functional and object-oriented programming language?

1 Answers  


Why scala is faster than java?

1 Answers  


Mention Some keywords which are used by Java and not required in Scala? Why Scala does not require them?

1 Answers  


What are the advantages of case class?

1 Answers  


Why is scala good for big data?

1 Answers  


What is scala option?

1 Answers  


What does listmap in scala?

1 Answers  


What are the advantages of scala over java (java 8)?

1 Answers  


Does a Companion object access private members of it’s Companion class in Scala?

1 Answers  


Categories