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 object in Scala? Is it a singleton object or instance of a class?



What is object in Scala? Is it a singleton object or instance of a class?..

Answer / Punkhuri Singh

'Object' in Scala refers to a singleton object, which is instantiated only once per JVM. It serves as a container for methods and fields (properties) that are shared among all instances of the class. An object acts like a pseudo-class (syntactically, it is not a class) but has a primary constructor without parameters.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is a applicative?

1 Answers  


What is for-comprehension in scala?

1 Answers  


Explain que?

1 Answers  


Mention the distinction between associate degree object and a category ?

1 Answers  


What is a monad in scala?

1 Answers  


What is a ‘Scala set’? What square measure ways through that operation sets square measure expressed?

1 Answers  


What does s method in scala string interpolation?

1 Answers  


Why scala is faster than java?

1 Answers  


What is repl in scala?

1 Answers  


What is implicit class in scala?

1 Answers  


What is an object in scala?

1 Answers  


Which scala library is used for the functional programming?

1 Answers  


Categories