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 is the difference between :: and #:: in scala?

1 Answers  


What is method overloading in scala?

1 Answers  


Explain ‘Scala higher order’ functions?

1 Answers  


How to define Factory methods using object keyword in Scala? What is the use of defining Factory methods in object?

1 Answers  


What is the difference between :: and #:: in Scala? What is the difference between ::: and #::: in Scala?

1 Answers  


What is Unit in Scala? What is the difference between Java’s void and Scala’s Unit?

1 Answers  


How do I append to the list?

1 Answers  


List types of identifiers available in scala?

1 Answers  


What does sortedset in scala collection?

1 Answers  


What is the best Framework to generate REST API documentation for Scala-based applications?

1 Answers  


What is a tuple in scala?

1 Answers  


Why is scala good for big data?

1 Answers  


Categories