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 scala closure?



What is scala closure?..

Answer / Parul Mishra

A Scala closure is an inner function that has access to the outer function's variables. In other words, a closure in Scala is a function that can 'remember' and continue to use its enclosing function's scope even when it is executed outside its immediate lexical scope.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is call-by-name? Does Scala and Java support call-by-name? What is the difference between call-by-value and call-by-name function parameters?

1 Answers  


What is the usage of isInstanceOf and asInstanceOf methods in Scala? Is there anything similar concept available in Java?

1 Answers  


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

1 Answers  


what are the features of scala?

1 Answers  


What square measure the Scala variables?

1 Answers  


What is an abstract class in scala?

1 Answers  


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

1 Answers  


Why is scala faster than java? Explain

1 Answers  


What is the major change or update in Scala 2.12?

1 Answers  


What is Primary Constructor? What is Secondary or Auxiliary Constructor in Scala?

1 Answers  


What is bitset in scala?

1 Answers  


How many operators are there in Scala and Why?

1 Answers  


Categories