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 tail recursion in scala?



What is tail recursion in scala?..

Answer / Ti Priensh Bhagat

Tail recursion in Scala refers to a recursive function where the final action performed by the function is the recursive call itself. This allows the compiler to optimize tail-recursive functions by converting them into loops, which can lead to improved performance and reduced memory usage.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

Difference between Scala’s Inner class and Java’s Inner class?

1 Answers  


What is method overriding in scala?

1 Answers  


How does it work under-the-hood, when we create an instance of a Class without using ‘new’ keyword in Scala? When do we go for this approach?

1 Answers  


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

1 Answers  


How does yield work in scala?

1 Answers  


What are the Scala variables?

1 Answers  


Does scala and java support call-by-name?

1 Answers  


Mention the difference between an object and a class ?

1 Answers  


Mention the advantages of scala?

1 Answers  


Explain recursion through a program?

1 Answers  


What is the difference between apply and unapply methods in scala?

1 Answers  


How do I concatenate two strings?

1 Answers  


Categories