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 an anonymous object in scala?



What is an anonymous object in scala?..

Answer / Arjun Dwivedi

"Anonymous objects in Scala are objects that do not have a name. They can be created using the apply method of the class they belong to, followed by curly braces containing the members and methods. The syntax for creating an anonymous object is: class_name.apply(members_and_methods) or new class_name { members_and_methods }".

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What are the major differences between Scala’s Auxiliary constructors and Java’s constructors?

1 Answers  


Who is the father of Scala?

1 Answers  


What does s method in scala string interpolation?

1 Answers  


What are streams in scala?

1 Answers  


List types of identifiers available in scala?

1 Answers  


What are the popular JVM Languages available now?

1 Answers  


What is pattern matching?

1 Answers  


What are the different types of Scala literals?

1 Answers  


How can you format a string?

1 Answers  


Is scala worth learning?

1 Answers  


What is the best tool to develop Play/Scala applications to persist data in MongoDB NoSQL data store?

1 Answers  


What are the major advantages of Scala Language? Are there any drawbacks of Scala Language?

1 Answers  


Categories