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...


Explain recursion through a program?



Explain recursion through a program?..

Answer / Deepshikha Singh

Recursion is a method of solving problems where the solution depends on solutions to smaller instances of the same problem. Here's an example of factorial recursion in Scala: 'def factorial(n: Int): Int = if (n <= 1) 1 else n * factorial(n - 1)'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

Which IDEs support Play and Scala-Based Applications Development and how?

1 Answers  


Is Scala a Pure OOP Language? or Java a Pure OOP Language?

1 Answers  


what are the features of scala?

1 Answers  


What is the difference between val and var in Scala?

1 Answers  


Write a few frameworks of scala?

1 Answers  


Explain the main drawback of scala language?

1 Answers  


List types of identifiers available in scala?

1 Answers  


Explain que?

1 Answers  


What is scala trait?

1 Answers  


List the advantages of using scala over other functional programming languages.

1 Answers  


In what ways Scala is better than other programming language?

1 Answers  


Explain bitset in scala?

1 Answers  


Categories