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 closure in Scala?



What is a closure in Scala?..

Answer / Akash Yadav

A 'closure' in Scala (and other languages) refers to a function that has access to variables defined outside its immediate scope. This means that if a function captures and stores references to some of the local variables during its creation, it can still access these variables even when it is invoked later or passed as an argument to another function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What do you understand by tail recursion in scala ?

1 Answers  


What is the default unit and functional testing framework for play? What is the default build tool for play? What is the default template engine for play? What is the built-in web server available in

1 Answers  


What is a class in scala?

1 Answers  


Tell me some features which are supported by Java, but not by Scala and Vice versa?

1 Answers  


What is bitset in scala?

1 Answers  


What are the differences between Array and ArrayBuffer in Scala?

1 Answers  


What is this in scala?

1 Answers  


Explain the functionality of yield?

1 Answers  


What is REPL in Scala? What is the use of Scala’s REPL? How to access Scala REPL from CMD Prompt?

1 Answers  


Differentiate between array and list in scala.

1 Answers  


What is a companion object?

1 Answers  


Like Java’s java.lang.Object class, what is the super class of all classes in Scala?

1 Answers  


Categories